Wednesday, February 20, 2013

ssh to run remote command in background


http://stackoverflow.com/questions/1628204/how-to-run-a-command-in-background-using-ssh-and-detach-the-session
http://superuser.com/questions/172043/how-do-i-fork-a-process-that-doesnt-die-when-shell-exits


The basic idea is to detach the process from tty.

Use nohup or screen.


[Note] setsid , disown

No comments:

Related Posts Plugin for WordPress, Blogger...