bug-bash
[Top][All Lists]
Advanced

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

Re: && operator prevents backgrounding over ssh


From: Hinrik Örn Sigurðsson
Subject: Re: && operator prevents backgrounding over ssh
Date: Fri, 27 Sep 2013 01:14:30 +0000

On Thu, Sep 26, 2013 at 8:07 PM, Bob Proulx <bob@proulx.com> 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
> usage of ssh in the above should use 'ssh -n'.

I'm not sure how that is helpful. 'ssh -n' closes stdin prematurely,
which means that any error from the first command ("cd /tmp") will not
be propagated to the originating host, e.g. when the directory doesn't
exist.



reply via email to

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