Please help in following.
I am doing
ssh user@server "source script.csh" from my home server
Let us suppose
script.csh contains 10 commands :
1st to 3rd command runs instantaneously
4th command takes 10-12 hours to complete
5th to 10th command also runs instantaneously
Last command copies the data back to home server.
I do want to hold to the shell of remote server for 10-12 hours. Also I want commands to run in the sequentially. I will keep monitoring for the files to come back on the home server to know the completion of my script on remote server.
How can I achieve this ?