[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gnome-terminal --command



mzagrabe@d.umn.edu wrote:
hello,

i am having trouble getting gnome-terminal to persist using the --command option.

$ gnome-terminal --command=ls

opens a new gnome-terminal and closes it immediately after executing the 'ls'.

does anyone know of a way to keep the terminal from closing after running the
command?

thanks,

-matt zagrabelny



This is what fluxbox uses in it's menus:

x-terminal-emulator -T "Worm" -e sh -c '/usr/games/worm;echo PRESS ENTER;read line'

given the syntax you gave above, I'd suggest:
gnome-terminal --command="sh -c 'ls;bash'" (executing bash after ls)

HTH,

Joris



Reply to: