Hello rory,

Saturday, December 08, 2001, rory o'connor <[EMAIL PROTECTED]> wrote:

roc> I'm not sure if perl is best suited for this project - but I bet it is!  I 
roc> need to call a server (perhaps via lynx?) in a cron'd script and then time 
roc> how long it takes for the page to load. 

roc> The reason is that sometimes the remote server stops loading pages due to 
roc> some unknown problem (this is nt4.0, mind you).  while we try to figure it 
roc> out, i need to be alerted via email when it hasn't finished loading the page 
roc> in say, 20 seconds - because the server needs to be restarted.

take a look at sample in
perldoc -f alarm

to load page from http server, you can use lynx, of course, but i
suggest you to use perl module 'LWP'.
perldoc LWP::Simple
perldoc LWP



Best wishes,
 Maxim                            mailto:[EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to