in reply to
Replacing backticks with system() and redirecting STDERR to file
Take a look at
IPC::Run
for this kind of thing in general. Or specifically for SSH, look at
Net::SSH
.
Comment on
Re: Replacing backticks with system() and redirecting STDERR to file
In Section
Seekers of Perl Wisdom