![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
WWW::Mechanize Timeout periodby gutbobs (Initiate) |
on Jul 27, 2009 at 15:50 UTC ( [id://783577]=perlquestion: print w/replies, xml ) | Need Help?? |
gutbobs has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
The is the first time I've ever looked at doing anything with Perl so bear with me..
I'm developing a system that monitors around 100 proxy servers. The proxy servers have a web page on them that displays the system status and I can't get this info out of them via SNMP. I'm trying to replace a bash script that uses lynx to browse to the appropriate page because lynx falls over if the password is wrong. I've got the following code, which works, but when one of the proxy servers is switched off the time out period is being ignored and there is a pause of nearly 4 minutes whilst the perl script sits round doing nothing. My code is below. It's running on Ubuntu 8.04 server (kernel is 2.6.15-26) and perl is version 5.8.7. WWW::Mechanize should be the latest version
Am I missing something obvious? I've done various searches and can't see what might be wrong Cheers Rich
Back to
Seekers of Perl Wisdom
|
|