On Sat, Feb 18, 2017 at 5:49 AM, aero <[email protected]> wrote:

> The purpose of HEREDOC in my parallel command is to avoid needing script
> transferring to worker servers when using -S worker1,worker2,.. option.
> But i encountered the problem with gnu parallel's positional replacement
> string pattern like above.
> HEREDOC script possibly contains postional replacement string pattern, It's
> hard to anticipate when it will happen.
>
> I walked through parallel tutorial again
> and I found that I can automatically transfer script file with '--basefile'
> option like the following.
>
> parallel --basefile /home/user/myscript.sh --controlmaster -S
> worker1,worker2 ssh {} bash < /home/user/myscript.sh  ::: [SERVER LIST...]

Yes you can do that. But why not use --env and --nonall as mentioned
in last email?

The ability to transfer environment (e.g. functions) is meant for
situations like this.


/Ole

Reply via email to