Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: NET::OpenSSH to execute multiple commands

by Kenosis (Priest)
on Aug 25, 2012 at 02:32 UTC ( #989676=note: print w/ replies, xml ) Need Help??


in reply to Re^4: NET::OpenSSH to execute multiple commands
in thread NET::OpenSSH to execute multiple commands

Try changing $Line2 to $Line in the following:

if ( $Line2 =~ m/^hostname / ) { @Data2 = split( ' ', $Line2 ); $Rname = $Data2[ 2 ] ; last ; }


Comment on Re^5: NET::OpenSSH to execute multiple commands
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-28 21:11 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 (259 votes), past polls