[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
- Unexpected positional replacement strings substitution, aero, 2017/02/11
- Re: Unexpected positional replacement strings substitution, Ole Tange, 2017/02/17
- Re: Unexpected positional replacement strings substitution, aero, 2017/02/17
- Re: Unexpected positional replacement strings substitution,
Ole Tange <=
- Message not available
- Re: Unexpected positional replacement strings substitution, Ole Tange, 2017/02/19
- Re: Unexpected positional replacement strings substitution, aero, 2017/02/20
- Re: Unexpected positional replacement strings substitution, aero, 2017/02/23
- Re: Unexpected positional replacement strings substitution, Ole Tange, 2017/02/23
- Re: Unexpected positional replacement strings substitution, aero, 2017/02/24
- Re: Unexpected positional replacement strings substitution, Ole Tange, 2017/02/24