parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected positional replacement strings substitution


From: Ole Tange
Subject: Re: Unexpected positional replacement strings substitution
Date: Sat, 18 Feb 2017 21:27:34 +0100

On Sat, Feb 18, 2017 at 5:49 AM, aero <chahkang@gmail.com> 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

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