On Sat, Apr 8, 2017 at 9:56 PM, Joe Sapp <[email protected]> wrote:
:
> I haven't been able to reproduce in a VirtualBox yet, but I did some
> more testing.  It appears that an environment variable is not being
> passed on completely.
>
> This will now work:
>   seq 10 | parallel --ssh "env KRB5CCNAME=${KRB5CCNAME} ssh -vvv"
> --sshlogin :,$SERVER --load 75% echo

Is KRB5CCNAME exported?

Try:

parallel echo '${}' ::: KRB5CCNAME
export KRB5CCNAME
parallel echo '${}' ::: KRB5CCNAME
seq 10 | parallel --sshlogin :,$SERVER --load 75% echo

If KRB5CCNAME is needed for ssh, then if it is not exported that would
explain all you see.

Variables transferred using env_parallel are not set when ssh starts.
They are being set on the remote system after ssh has logged in, so if
ssh needs some variables they will have to be exported.


/Ole

Reply via email to