How to make "gnome-terminal -x" behave like "xterm -e"



Wondering if there is a way to make "gnome-terminal -x <cmd>" wait 
until the command terminates before returning?


For instance, when using xterm:

$ xterm -e vi tmpfile ; rm tmpfile

The tmpfile won't be deleted until the user has had a chance to read it 
in vi and quit the editor.


However, if you try the same thing with gnome-terminal:

$ gnome-terminal -x vi tmpfile ; rm tmpfile

The user never gets to read the tmpfile because it has been deleted
before vi actually gets a chance to start.


Is there is a way to tell gnome-terminal to behave like xterm and 
not return until the command has been run in the terminal to completion?

Thanks,
Sean



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