[X-Unix] Need to log internet connectivity

luke etyrnal at ameritech.net
Mon Jun 28 23:10:57 PDT 2004


On Sunday, June 27, 2004, at 12:55  PM, Stroller wrote:

> If you're using an ethernet modem or router then it might be a bit 
> more difficult to obtain this information. The web-interface of my 
> Draytek 2600 ADSL modem-router allows me to set remote syslogging, so 
> I record this information on my Linux box. You could probably record 
> it equally well on your OS X box, but it's not as straightforward as 
> the `cat /var/log/ppp/whatever` of a directly connected interface.
>

why not write a script that pings a common site to test for up?

like ping yahoo.com or something...

once a minute.

if the ping gets no reply - down
if ping gets reply - up...

cat single pings to a log ?




More information about the X-Unix mailing list