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! ++
|