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: Tue, 22 Sep 2015 20:34:45 +0200

> 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''.

But:

$ autossh localhost 'perl -e "print 1"'
1

So if you have myautossh:

    #!/bin/bash

    host="$1"
    shift
    autossh $host "$*"

Then you can:

parallel --sshlogin localhost --ssh myautossh echo ::: 1


/Ole



reply via email to

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