Script help please

George Toft plug-discuss@lists.plug.phoenix.az.us
Sun, 19 Jan 2003 19:21:12 -0500


Miles Beck wrote:
> 
> >
> > Here ya go!
> >
> > I tested on my own server.  You might want to change the URL, EMAIL, etc
> > :)  if you have any questions, let me know.
> >
> > George
> 
> Hi George,
> 
> Thanks for writing this up.
> 
> I changed the url to point to the server I want to monitor, and also the
> email addresses to send the alerts to.
> 
> Alas, the script does not return any information for me or send emails when
> I run it. It never returns the prompt either. Even though I can see it will
> eventually exit once it is done sleeping.
> 
> -Miles
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


It will never exit - while [ 1 ]; do ... done is an infinite loop. 
Round 1 was more of a daemon than an informative script.  Round 2 (on my
site) gives a status after every check.  Try out the second one and let
me know if does the trick.

http://www.georgetoft.com/linux/shell/monitor.shtml

George


-- 
This e-mail message certified virus-free
as it was generated on a Linux system.

http://www.georgetoft.com/linux/index.html