josh803316 has asked for the wisdom of the Perl Monks concerning the following question:
I verified that the command string works as expected when I login via ssh and run the command by hand..........Does this issue have to do with my pty or terminal settings? My connection options are very simple:bash: line 0: cd: /home/test/Scripts/TestCaseScripts/: No such file or + directory
I read through the cpan docs for Net::OpenSSH but wasn't sure which option to set$session_obj = Net::OpenSSH->new("$host", user => $username, password +=> $password, timeout=> 30, strict_mode => 0,master_opts => [ -o => " +StrictHostKeyChecking=no"]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH can't change working directory
by ahmad (Hermit) on Jul 16, 2010 at 19:52 UTC | |
by josh803316 (Beadle) on Jul 16, 2010 at 20:00 UTC | |
|
Re: Net::OpenSSH can't change working directory
by jethro (Monsignor) on Jul 16, 2010 at 19:58 UTC | |
by josh803316 (Beadle) on Jul 16, 2010 at 21:57 UTC | |
by jethro (Monsignor) on Jul 17, 2010 at 02:29 UTC | |
by josh803316 (Beadle) on Jul 17, 2010 at 16:45 UTC | |
by josh803316 (Beadle) on Jul 16, 2010 at 22:30 UTC | |
|
Re: Net::OpenSSH can't change working directory
by Khen1950fx (Canon) on Jul 18, 2010 at 00:11 UTC |