You may want to look at Net::SSH or even Net::SSH::Perl. Personally, I use this sort of construct, which you might want to plop inside an eval (see alarm):
use strict; use warnings; use Net::SSH qw(sshopen3); my $command = "/some/remote/command"; my $reader = IO::File->new(); my $writer = IO::File->new(); my $error = IO::File->new(); sshopen3( "$user\@$host", $writer, $reader, $error, $command ) or die +$!;
In reply to Re: process handling
by ptum
in thread process handling
by domcyrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |