Edit
Using Linux and remote ssh command (I've placed my public ssh key on the remote server to allow non-password prompted connects)
The following command runs fine from the Linux command line:
ssh root@remoteIP /usr/bin/ls
However, when the following is called from my perl script:
system("ssh root@remoteIP /usr/bin/ls");
Perl reports:
ssh: Could not resolve hostname root.remoteIP: Name or service not known
(remoteIP is the real IP address of the remote computer. Obviously, I need to tell Perl how to resolve the address?)