I am writing a linux script to automate a few commands I wish to run on my machine. My question is this:
I have about 5 -10 commands I need to run in the script. But there are a few commands that I need it to open up a new shell and run them seperately from the others.
Commands 1-4 in one shell
5-6 in another shell
7-9 in a third shell for a total of 3 shells when the script completes.
How do I tell the script to open a new shell when running one of the specific commands? Is that possible?