in reply to Re: Turn off stdout in Net::SSH::Perl
in thread Turn off stdout in Net::SSH::Perl
This also failed, but several print statements in remote.script showed that my back ticked line was not being executed at all! I then created a simple perl one-liner on the remote machine and noted that this worked if I ran it remotely from my shell script.output=`ssh root@172.17.194.60 /u/remote.script`;
Then the answer struck me...my remote.script did not have the full path in front of DB_COMPILE. Once this was inserted everything worked perfectly!$result=`/bin/ls -l /u/tns/`;
This has been bugging me for ages, so thanks for making me think again and setting me off in the right direction!$result1=`/u/DB_COMPILE $from $to`;
|
|---|