are you sure you are showing us the right code and error message?
This
system("ssh root@remoteIP /usr/bin/ls");
will try to interpolate an array @remoteIP into the double-quoted string
so better either write
system("ssh root\@remoteIP /usr/bin/ls")
or
system('ssh root@remoteIP /usr/bin/ls')
BTW: did you use strict and warnings ?
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Calling a remote ssh connection from perl
by LanX
in thread Calling a remote ssh connection from perl
by KenHorse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |