Posts: 1,028
SamK
Joined: 21 Aug 2011
#1
When using the format:

Code: Select all

roxterm --execute command
The terminal window closes once the command has completed. The man page does not indicate how to hold it open. Is it possible?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
roxterm --execute htop keeps the original roxterm open. Or are you using something else?
Posts: 1,028
SamK
Joined: 21 Aug 2011
#3
anticapitalista wrote:roxterm --execute htop keeps the original roxterm open. Or are you using something else?
I am looking for the equivalent switch -hold used in xterm.

Running the following command in xterm holds the window open once the command has completed

Code: Select all

xterm -hold -e mp3tag
but in ROXTerm it closes.

My objective is to construct a menu command that lets the app display its help info and then leaves the terminal window open ready to accept user input.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#4
tell roxterm to execute the bash shell and then run the commands, the bash shell should be final entry.
Example:
roxterm -e bash -c"leafpad; bash"
Posts: 1,028
SamK
Joined: 21 Aug 2011
#5
Thanks, it works fine as per the following worked example:

Code: Select all

roxterm --hide-menubar --title=MP3tag --execute bash -c"mp3tag; echo; echo; bash"
The echoes are included for aesthetic effect only; to provide empty lines between the end of the command and the user prompt.