in reply to How to talk to ssh-agent from inside a perl script

env SSH_AUTH_SOCK=$SSH_AUTH_SOCK inner_script.sh

Why are you doing this instead of just exporting the variable (export SSH_AUTH_SOCK)? Which shell are you using?

Replies are listed 'Best First'.
Re^2: How to talk to ssh-agent from inside a perl script
by tekka (Initiate) on Mar 16, 2010 at 12:08 UTC

    You are right; actually there was a part inside the perl script that zeroed the SSH_AUTH_SOCK env var in certain cases... that I met... ;-(

    So it was a false problem.

    Thanks anyway for the help and for the ssh-agent script.