Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Port Forwarding with Net::SSH::Expect

by jrsimmon (Hermit)
on Dec 21, 2007 at 22:40 UTC ( [id://658560]=note: print w/replies, xml ) Need Help??


in reply to Re: Port Forwarding with Net::SSH::Expect
in thread Port Forwarding with Net::SSH::Expect

Ok, so at first this post confused me, seems at first glance to be functionally equivalent...but then i realized the last thing I did before going to be last night was to "clean up" my code and put each session into its own subroutine.

I pulled subs and created on long script like you have here, and it works like a charm. I don't quite understand why that would make a difference...maybe something with the scope of the various $ssh vars?

Thanks much for the help! ++
  • Comment on Re^2: Port Forwarding with Net::SSH::Expect

Log In?
Username:
Password:

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

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

    No recent polls found