in reply to Getting error when runing perl through ssh
Use the absolute path for the perl executable, it is possible that your path is not set as you expect it. So do
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan
ssh -lroot somehost "/usr/bin/perl -ibkup -ne '{ s/192.168.10.55/db1.a +bc.com/g; print \"$_\n\";}' tnsnames.ora"
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan
|
---|
In Section
Seekers of Perl Wisdom