You are not logged in.
Pages: 1
Hello,
I recently installed Arch with Fluxbox in order to try it and I'm wondering if there is a way to start a terminal window then automatically have it run a command.
For example, I'm currently working on editing my fluxbox menu and want to be able to open irssi automatically from the menu rather than having to open a terminal window to start it. At first I tried just setting the command as "irssi" but this doesn't do anything. Is there some way I can open a terminal window then have it execute irssi automatically?
Thanks in advance!
Last edited by celestialorb (2009-07-31 03:51:44)
Offline
What terminal are you using?
urxvt -e $CMD
xterm -e $CMD
Offline
Yes you can do this, but the method is semi-dependent upon which terminal you're using. Urxvt looks like this:
urxvt -e sh -c irssi
where sh is the shell you want to launch the command under.
EDIT: Beaten to the punch. You can use smurnjiff's method, if it works for you - but I've found that unless you specify a shell, urxvt fails to keep a window around long enough to do anything with the command. Works fine with one shot deals though - such as 'mpc prev' or similar.
Last edited by synorgy (2009-07-31 03:44:45)
"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)
Offline
I'm using just regular terminal (not xterm) and I was able to extrapolate the command based on the replies. Thanks! Much appreciated!
To anyone else who might possibly be curious here's the command:
terminal -e irssi
Last edited by celestialorb (2009-07-31 03:47:38)
Offline
Pages: 1