I have a script which is running some of (more than 15) applications like:
cd mypath sleep 1 gnome-terminal -t App1 --tab -e "./App1" sleep 1 gnome-terminal -t App2 --tab -e "./App2" .. .. sleep 1 gnome-terminal -t App15 --tab -e "./App15"
As you can notice this will start apps in 15 different terminals.
Now what happens is when I kill any
./AppX by Ctrl+C, for any reason, it terminates the program as well as exits that terminal.
What I want is when I press Ctrl+C it should only terminates the
./AppX, but terminal still remain open, that is beacause when I want to start that
AppX again I should press only Up Arrow key and Enter.
Got the Answer :: see the accepted answer from askubuntu.com.
Another question is : How do I execute more than one command like following:
gnome-terminal -e "sleep 1; AppX"
which is NOT working, I tried various other methods (&, &&, |) but all failed.