On Sun, Feb 19, 2017 at 2:28 AM, aero <[email protected]> wrote:

> I want to run /home/user/myscript.sh once on remote [SERVER LIST...]
> -S worker1,worker2 servers are only gateways to executed ssh command on
> remote servers.
> All needed env. variables in myscript.sh, so I don't think --env variable is
> necessary.
>
> MY TEST:
>
> No 1)
>
> $ parallel --tag -k --nonall -S worker1,worker2 echo {} ::: s1 s2 s3 s4
> worker2        s1
> worker2        s2
> worker2        s3
> worker2        s4
> worker1 s1
> worker1 s2
> worker1 s3
> worker1 s4
>
> No 2)
>
> $ parallel --tag -k -S worker1,worker2 echo {} ::: s1 s2 s3 s4
> s1      s1
> s2      s2
> s3      s3
> s4      s4
>
> What I want is No 2.
> Am I doing wrong ?

I am sorry, but I do not understand the problem you are describing.

Does it have anything to do with ssh via a jumphost? Then this may be helpful:

https://www.gnu.org/software/parallel/man.html#EXAMPLE:-Using-remote-computers-behind-NAT-wall


/Ole

Reply via email to