[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
- GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Marco Tamassia, 2015/09/22
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Marco Tamassia, 2015/09/22
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Ole Tange, 2015/09/22
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded,
Andreas Bernauer <=
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Ole Tange, 2015/09/22
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Andreas Bernauer, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Marco Tamassia, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Andreas Bernauer, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Marco Tamassia, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Andreas Bernauer, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Marco Tamassia, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Ole Tange, 2015/09/23
- Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded, Ole Tange, 2015/09/23