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: Wed, 23 Sep 2015 11:16:09 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 23/09/15 10:53, Marco Tamassia wrote:
> My use case is tightly related to how autossh operates.
> In autossh you specify a port that the software uses for monitoring the
> ssh connection (I don't know the internals).
> Since I am going to have more than one connection, I need to specify
> different numbers for each remote call.
> For example, normally you would do autossh -M 20000 HOST sleep 60, but
> if you wanted to have other parallel calls to the same host you would
> probably to call them autossh -M 20001HOST sleep 60, autossh -M
> 20002HOST sleep 60, ...
> My idea was to call parallel as follows:
> echo 20000 20001 20002 | parallel --ssh 'autossh -M '{} --sshlogin HOST
> sleep 60

I still don't understand: you are not using '{}' in the command.

Shouldn't your example be

echo 20000 20001 20002 | parallel autossh -M {} HOST sleep 60

?

-Andreas



reply via email to

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