in reply to ssh trouble

It's failing because Net::SSH::Perl starts a new session for every command it runs. Try...
$ssh->cmd("cd AATv2 && perl getEnvs.pl");

Replies are listed 'Best First'.
Re^2: ssh trouble
by rgb96 (Acolyte) on Mar 10, 2009 at 19:42 UTC
    Thanks, so much. That fixed it. I had read that, but I thought it said it only did that for ssh protocol1 and if you didn't give it a protocol, it defaulted to 2, but I must have been wrong.