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: Marco Tamassia
Subject: Re: GNU Parallel Bug Reports --ssh 'autossh' not working and --ssh 'autossh -M {PORT} not expanded
Date: Wed, 23 Sep 2015 18:53:04 +1000

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 20001 HOST sleep 60, autossh -M 20002 HOST sleep 60, ...
My idea was to call parallel as follows:
echo 20000 20001 20002 | parallel --ssh 'autossh -M '{} --sshlogin HOST sleep 60



On 23 September 2015 at 18:41, Andreas Bernauer <address@hidden> wrote:
On 23/09/15 7:41, Marco Tamassia wrote:
> This aside, my first email I was reporting a second bug.

I assume, you are referring to

> > Furthermore, I plan to run autossh with port monitoring. However,
since more of these connections will be launched in parallel, I need to
parameterize the arguments to autossh so that different ports are used
for parallel connections. The argument would look like --ssh 'autossh -M
{PORT}, but this is currently not expanded.

> Is that
> fixable? Even though I cannot think of other use cases for it, it seems
> to me that parameters expansion should be applied to all of parallel
> arguments (there may be exceptions, though). What do you guys think?
>

I don't understand what you try to achieve. Why should ssh and the
command you want to execute on the remote take the same argument(s)?

-Andreas



--
Marco Tamassia

reply via email to

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