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....:
"Use of unitialized value $check in pattern match (m//) at /usr/local/ +lib/perl5/site_perl/5.12.2/Net/OpenSSH.pm line 662" "Use of unitialized value $check in pattern match (m//) at /usr/local/ +lib/perl5/site_perl/5.12.2/Net/OpenSSH.pm line 671"
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH killing script
by salva (Canon) on Feb 02, 2011 at 16:31 UTC | |
by jaiieq (Novice) on Feb 02, 2011 at 18:02 UTC | |
by salva (Canon) on Feb 03, 2011 at 11:17 UTC | |
by jaiieq (Novice) on Feb 07, 2011 at 15:09 UTC | |
|
Re: Net::OpenSSH killing script
by zentara (Cardinal) on Feb 02, 2011 at 16:25 UTC | |
by jaiieq (Novice) on Feb 11, 2011 at 13:25 UTC | |
by Anonymous Monk on Feb 03, 2011 at 19:46 UTC | |
by zentara (Cardinal) on Feb 04, 2011 at 13:48 UTC | |
by Anonymous Monk on Feb 04, 2011 at 15:19 UTC | |
by zentara (Cardinal) on Feb 04, 2011 at 19:48 UTC | |
|