Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: invoke muliplt bash scripts on different machine

by vinoth.ree (Monsignor)
on Jun 25, 2014 at 13:40 UTC ( [id://1091190]=note: print w/replies, xml ) Need Help??


in reply to invoke muliplt bash scripts on different machine

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1091190]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-19 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found