Im writing a shell script and i need my script to open a xterm window run a command and without closing the xterm proceed with the script.
The code is basically a huge case for a menu.
This is an example of my script
echo -n "thingy > "
echo -n "thingy1> "
xterm -hold -e *el command*
nohup xterm -hold -e *el command* &
May do what you want. The
nohup tells the shell not to send the HUP (1) signal to this child process when the parent exits. The
& makes the
xterm command run in the background so that the script can continue.