Perl-Sensitive Sunglasses | |
PerlMonks |
Re: best method in perl to execute command on remote server and fetch its outputby moritz (Cardinal) |
on May 24, 2015 at 13:09 UTC ( [id://1127584]=note: print w/replies, xml ) | Need Help?? |
Regardless of the programming language you use, and regardless of questions of convenience, you should use ssh. In contrast to both rsh and telnet, it can be secure. On the perl side of things, Net::OpenSSH has a pretty good reputation. It's ->capture method lets you retrieve the output of a remote command, so it seems to fit your requirements.
In Section
Seekers of Perl Wisdom
|
|