Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Run Remote Command Via SSH

by Sandy (Curate)
on Nov 06, 2012 at 00:44 UTC ( #1002406=note: print w/ replies, xml ) Need Help??

in reply to Run Remote Command Via SSH

Hi, sorry, I know nothing about Net::SSH.

However, when you "use" with a list, it is only subs within that list that are immediately available.


use Net::SSH qw(ssh_cmd ssh ...)

Good luck!

Comment on Re: Run Remote Command Via SSH
Download Code
Replies are listed 'Best First'.
Re^2: Run Remote Command Via SSH
by Lotus1 (Deacon) on Nov 06, 2012 at 03:42 UTC

    I just sent an email to the module authors since the code posted by the OP is almost straight out of the synopsis for Net::SSH. The example code also does not import ssh_cmd. It's minor but can be confusing for someone new to Perl.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-11-30 01:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (755 votes), past polls