Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to debug a perl module

by zentara (Archbishop)
on Nov 16, 2010 at 16:33 UTC ( #871773=note: print w/ replies, xml ) Need Help??


in reply to How to debug a perl module

Does ssh timeout prevention help? What happens when you use Net::SSH2 to connect to the cisco unit?

I was just looking into something similar yesterday, in trying to figure out how to allow Net::SSH2's channel to start a background process on the target machine, without it dying when the ssh connection is dropped. See Re^7: A little demo for Net::SSH2.

What I noticed is that the c version of ssh2 has the ability to automatically put itself into the background and run commands as no_tty ( or something like that).

In other words, the c version detachs itself automatically, but a perl connection may need it done manually with

nohup perlprog.pl &
then close the console

I'm just trying to point out the detachment process, as a possible reason for the difference between the c ssh and the Perl version, and that maybe it is the cause of your problem.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh


Comment on Re: How to debug a perl module
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2015-07-30 23:50 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 (273 votes), past polls