Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Executing a command using Net::SSH::Perl

by dorko (Parson)
on Sep 23, 2010 at 14:30 UTC ( #861552=note: print w/ replies, xml ) Need Help??


in reply to Executing a command using Net::SSH::Perl

Hello,

I would do what marto recommended.

But the docs for Net::SSH::Perl say this should work:

# Runs the command $cmd on the remote server and returns # the stdout, stderr, and exit status of that command. # If $stdin is provided, it's supplied to the remote # command $cmd on standard input. my ($out, $err, $exit) = $ssh->cmd($cmd, $stdin )

Cheers,

Brent

-- Yeah, I'm a Delt.


Comment on Re: Executing a command using Net::SSH::Perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-30 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls