Nohup over ssh won't return

Posted by user1219721 on Super User See other posts from Super User or by user1219721
Published on 2012-07-15T17:24:30Z Indexed on 2012/10/26 11:05 UTC
Read the original article Hit count: 230

Filed under:
|

I am trying to do

[me@myPc]$ ssh me@server "nohup myBashScript.sh &"

My goal is to launch the process on the server, and then immediately return.

It is not working: The job is started on server, but I still get the output on myPc and bash wait for completion prior to asking me for another command.

Why ? It's not supposed to ! Any way to avoid that ?

  • myPc is RHEL6.2
  • server is ubuntu 10.04 and
  • both runs openssh

© Super User or respective owner

Related posts about openssh

Related posts about nohup