On Tue, 7 Nov 2000, Willy Lee wrote: > I wanted to run 'ntpdate' periodically via a cron script. However, I > would prefer if the script would only run ntpdate if I am online (my > dialup account), in order to avoid filling up my logs with 'can't find > xxx.xxx.xxx.xxx' messages. Is there something in /proc or a simple > command that I could use to tell whether I'm dialed up? Currently I > am simply running 'ifconfig ppp0' to see if I'm online, but that seems > a little inelegant to me.
Given that you're trying to see if you can access xxx.xxx.xxx.xxx how about using ping? That will protect you in the case you're dialed up but the ntp server is unreachable for some reason, too. Damian Menscher -- --==## Grad. student & Sys. Admin. @ U. Illinois at Urbana-Champaign ##==-- --==## <[EMAIL PROTECTED]> www.uiuc.edu/~menscher/ Ofc:(217)333-0038 ##==-- --==## Physics Dept, 1110 W Green, Urbana IL 61801 Fax:(217)333-9819 ##==--