[NTLUG:Discuss] Script help

Richard ntlug at rain4us.net
Sun Sep 19 22:18:42 CDT 2010


  On 9/15/2010 11:47 PM, Fred wrote:
> The script is a simple job to ping a known good server out on the
> web, log the time, wait for a minute and repeat. If the ping
> fails, write "Net down" to the log.
>
I've done that before.

Are you putting the script in the background?

Maybe call your script from rc.local with a line like.
---------------
/usr/local/sbin/fredsnetwatch &
---------------

This way you don't have to fight the start up scripts and you get your 
script running in the background from a script that you know will be 
executing.

Extra comment:  I did a traceroute in and out and I pinged a variety of 
targets to help diagnose exactly where the error occurred.  Providing 
that to tech support was revealing to them.



More information about the Discuss mailing list