Script help please

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: George Toft
Dato:  
Nye-emner: Where is the PLUG logo?
Emne: Script help please
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 -
> 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