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
...
example() {
echo -n "thingy > "
read thingy
echo -n "thingy1> "
read thingyl
xterm -hold -e *el command*
menux
}
...
Problem:
The script opens xterm executes the command and keeps the window open but wont continue the script and if i press ctrl + c it goes back to the shell