bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'auto


From: Ole Tange
Subject: Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded
Date: Wed, 23 Sep 2015 01:11:22 +0200

On Tue, Sep 22, 2015 at 11:09 PM, Andreas Bernauer
<address@hidden> wrote:
:
> Thus, another solution is that parallel tells ssh to stop parsing
> options with '--':
> ssh localhost -- perl -e \'"print 1"\'
>
> This might even be preferable, given that parallel allows to exchange
> the ssh program. I don't know whether all ssh implementations that
> parallel wants to support out-of-the-box understand '--', nor do I know
> autossh.

How do you do that for rsync (which is used for file transfer)?

    rsync -e ssh ... [something with -e and and stuff]

I do not see a way of providing rsync with a template in which to put
the hostname with -- appended:

    rsync -e 'autossh %hostname --' ...

Also it seems autossh ignores exit code:

    $ autossh localhost false
    $ echo $?
    0

All in all it seems autossh is quite broken as an ssh client.


/Ole



reply via email to

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