The stupid question is the question not asked | |
PerlMonks |
Net::OpenSSH killing scriptby jaiieq (Novice) |
on Feb 02, 2011 at 15:43 UTC ( [id://885771]=perlquestion: print w/replies, xml ) | Need Help?? |
jaiieq has asked for the wisdom of the Perl Monks concerning the following question: Here is a quick synopsis of what I am doing, and the error(s) I am receiving. I have about 40 computers that I use Net::OpenSSH to connect to. It will connect to one of the remote computers, check for the existence of a process using a simple shell command (using ssh->system). If the process is not running, it then uses the ssh->spawn method to launch it. Finally, I use the capture2 method to read some data that is generated by the process that was spawned (or running) earlier. This process loops through the ~40 remote computers constantly for a given period of time (can be days) Everything works fine... for awhile. Randomly, the Net::OpenSSH module will puke and kill the script (Killed by Signal 1). I start to see the following before the script is killed....:
And $ssh->error prints "unable to establish master SSH Connection: Unknown error" Any ideas as to why everything would work fine, but eventually (and randomly) to spitting out these errors and finally kill the script? This is all on MAC OS X (10.5 or above). If anymore information is needed, please let me know and I'll post more details as needed. Thanks!
Back to
Seekers of Perl Wisdom
|
|