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: Andreas Bernauer
Subject: Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded
Date: Tue, 22 Sep 2015 23:09:10 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 22/09/15 20:34, Ole Tange wrote:
>> On 22 September 2015 at 13:06, Marco Tamassia <address@hidden>
>> wrote:
>>>
> :
>>> address@hidden ~/Desktop/multiagent $ parallel --sshlogin localhost
>>> --ssh 'autossh' echo ::: 1
>>> /usr/lib/autossh/autossh: invalid option -- '-'
> 
> It seems autossh is not ssh compatible:
> 
> $ ssh localhost perl -e \'"print 1"\'
> 1
> $ autossh localhost perl -e \'"print 8"\'
> Bad escape character ''print 8''.

The error message indicates that autossh tries to parse the '-e' option
to perl.

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.


-Andreas



reply via email to

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