I have a script that asks the user for input for options.
When selecting the option I have it so it runs a new terminal and executes another script for the specified option.
I still want the menu script on the first terminal to ask for user input rather than exiting the script. Some feedback on this would be greatly appreciated.
The following was copied from a comment by the OP:
Here is an example:
#!/binbash clear echo echo echo echo "1. Option Here" echo echo -n "Choice" read choice echo $choice case $choice in 1) /root/scriptexample/./examplenewterminal.sh ;; esac ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#!/bin/bash xterm -e "/root/scriptexample/./example.sh" bash clear echo
#!bin/bash clear echo echo echo echo commands here, etc. When you Control + C example.sh to stop commands executing, I want the xterm menu
to close and the script to continue to load the menue.sh in the original terminal.