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: bill duncan
Subject: Re: && operator prevents backgrounding over ssh
Date: Thu, 26 Sep 2013 23:05:41 -0400

It closes stdin, not stdout or stderr..



On Thu, Sep 26, 2013 at 9:14 PM, Hinrik Örn Sigurðsson <address@hidden
> wrote:

> On Thu, Sep 26, 2013 at 8:07 PM, Bob Proulx <address@hidden> 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.
>
>


-- 
-- 
bill duncan at beachnet


reply via email to

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