Syntactic Confectionery Delight | |
PerlMonks |
Re: invoke muliplt bash scripts on different machineby vinoth.ree (Monsignor) |
on Jun 25, 2014 at 13:40 UTC ( [id://1091190]=note: print w/replies, xml ) | Need Help?? |
Hi, Login into remote server via ssh and if you start a shell script or command and you exit (abort remote connection), the process / command will get killed. Sometime job or command takes a long time. If you are not sure when the job will finish, then it is better to leave job running in background(&). But, if you log out of the system, the job will be stopped and terminated by your shell. What do you do to keep job running in the background when process gets SIGHUP. Use nohup command line-utility which allows to run command/process or shell script that can continue running in the background after you logout from a shell. `ssh -q -o ConnectTimeout=10 $usr1@host1 nohup /tmp/start $V1 $v2 &`;All is well
In Section
Seekers of Perl Wisdom
|
|