Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 chanting in the Monastery: (8)
As of 2014-08-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls