I have a regular shell csh command script which has the following structure. I want to spawn new terminals and run some subsequent commands IN the new shells created.
xterm & ;
source myscript.scr;
cd fred;
run_tool &
xterm & ; source myscript.scr; cd bill ; run_tool &
I am running my script in a csh term called say term1. So the first part is I want to open a new terminal term2 , and then in this newly opened terminal term2 excecute the next few commands. I then also want a further terminal from the original term1 terminal and execute some other commands in this new terminal say term3
I am finding that the new terminal term2 is created , but then the commands that follow get exceuted in the original terminal term1 , NOT in the new terminal term2 .
Please can you advise as to how to ensure that my subsequent commands are "carried over " into the new shell fof execution there , noting also that I need to come back and issue a new terminal