Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Perl SSH2

by sparkyichi (Deacon)
on Jul 22, 2013 at 21:48 UTC ( #1045738=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Perl SSH2
in thread Perl SSH2

Can you provide more detail about the main script?

How do you know stopservices is running and hasn't been skipped?

If you need to get out of a sub you can use "return($var)" to return to the calling routine.


Comment on Re^3: Perl SSH2
Replies are listed 'Best First'.
Re^4: Perl SSH2
by PilotinControl (Monk) on Jul 23, 2013 at 01:57 UTC

    It was a simple fix it seems $chan->blocking(0); was keeping the script from properly executing a command. Thanks for the input it made me look closer at the code in depth instead of just surface.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2016-02-09 20:54 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (326 votes), past polls