&& operator prevents backgrounding over ssh

2013-09-26 Thread Hinrik Örn Sigurðsson
The "&&" operator in bash seems to inhibit backgrounding when run over ssh. You can try it with the following: ssh localhost "cd /tmp && nohup sleep 10 >/dev/null 2>&1 &" The above command will wait for sleep(1) to finish before returning. If it is run without ssh, it returns immediately. Furth

Re: && operator prevents backgrounding over ssh

2013-09-26 Thread Hinrik Örn Sigurðsson
On Thu, Sep 26, 2013 at 8:07 PM, Bob Proulx wrote: > Just a reminder that ssh reads from stdin unless explicitly told to > avoid reading from stdin. If stdin isn't going to be used then the -n > option should be used. > [...] > Regardless of the resolution of the above question about bash the > u