At some point around Wed, Oct 18, 2000 at 09:16:23 +1000, Dave Kempe said:
> Hey sluggers,
> I'm very newbie at writing scripts or any sort of programming really.
> Wondering where I would start to write a script that checked to see if the
> PPP link was up and if it wasn't brought it up? I know that the modem lock
> files would be useful cos nothing else uses the modem, so the existance of
> /var/lock/LCK..ttyS0 is reasonable. Or is there a better way in /proc
> something.
The best way is to test for a PPPd lock file, I'd have thought. 
(for debian)
if [ ! -e /var/lock/ppd], then
#link is not up
#do stuff to make the link work
else
#do other stuff knowing the link is up
fi
(or there abouts)
> 
> The other question i have is how to understand the entries in crontab.
> I have read a few cron tutuorials, and still don't exactly understand how to
> make cron do something once an hour or once a day.
> I don't exactly understand what each column means in the 6 or so *'s that
> are at the start of the crontab entry. Anyone care to share the secret?
in order:
m(inute); h(our); d(ay)o(f)m(onth); mon(th); d(ay)o(f)w(eek);
usercommand

man 5 crontab for more info...

-thom
> thanks,
> 
> Dave
> 
> 
> 
> 
> -- 
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug

-- 
Thomas May
        Sys Admin, AMX Communications
(T) +44 (0)20 7440 3955
(E) [EMAIL PROTECTED]
(W) http://www.amxstudios.com


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to