[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: && operator prevents backgrounding over ssh

From: Greg Wooledge
Subject: Re: && operator prevents backgrounding over ssh
Date: Thu, 26 Sep 2013 10:52:52 -0400
User-agent: Mutt/

On Thu, Sep 26, 2013 at 06:27:10AM +0000, Hinrik Örn Sigurðsson wrote:
> 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.

Confirmed on HP-UX 10.20 with bash 4.2.37.  Changing && to ; causes
an immediate return.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]