Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: process handling

by ptum (Priest)
on Nov 06, 2006 at 17:38 UTC ( [id://582485]=note: print w/replies, xml ) Need Help??


in reply to process handling

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 +$!;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-19 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found