You are not logged in.

#1 2009-07-31 03:35:35

celestialorb
Member
From: Seattle, Washington
Registered: 2009-07-30
Posts: 30

IRSSI and Terminal Window [SOLVED]

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! smile

Last edited by celestialorb (2009-07-31 03:51:44)

Offline

#2 2009-07-31 03:41:23

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: IRSSI and Terminal Window [SOLVED]

What terminal are you using?

urxvt -e $CMD
xterm -e $CMD

Offline

#3 2009-07-31 03:41:55

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: IRSSI and Terminal Window [SOLVED]

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

#4 2009-07-31 03:44:46

celestialorb
Member
From: Seattle, Washington
Registered: 2009-07-30
Posts: 30

Re: IRSSI and Terminal Window [SOLVED]

I'm using just regular terminal (not xterm) and I was able to extrapolate the command based on the replies.  Thanks!  Much appreciated!  smile

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

Board footer

Powered by FluxBB