in reply to Re^3: ssh trouble
in thread ssh trouble

It seems that the cd is working, and I noticed $err is printing out "Can't open perl script "getEnvs.pl": No such file or directory." which is weird, because I know for a fact that it is there. I can manually create an ssh session, and copy and paste those same commands from my script to my ssh, and they work fine. I tried being more specific with the cd path, but that didn't seem to make a difference either.

Replies are listed 'Best First'.
Re^5: ssh trouble
by toolic (Bishop) on Mar 10, 2009 at 19:30 UTC
    just grasping at straws... does SSH think the file is there? Are permissions OK?
    ($out, $err, $exit) = $ssh->cmd("ls -la");