[matt@q local]$ man 5 crontab

This man page describes the fields for cron very well.  If you want a
half-hour bong, try the following in /etc/crontab:

/30 * * * * root play /usr/local/sound/bong.wav

What does this mean?

Every 30 minutes (/30) of every hour (*) of every day (*) of every month
(*) on every day of the week (*), run as root (root) `play
/usr/local/sound/bong.wav`.

For specific, one-time appointments, you don't want cron.  Cron is for
jobs that run repeatedly on a schedule.  Say I want to run my script
/usr/local/sbin/myscript once every Sunday night at 2:12am.

12 2 * * 0 root /usr/local/sbin/myscript

This says that at 12 minutes (12) past 2 (2) for all days (*) of all
months (*), but only on Sundays (0) I want to run as root
(root) `/usr/local/sbin/myscript`. 

As I was saying before I got sidetracked, I'd use `at` for one-time
appointments, but unfortunately, my Linux-Mandrake 7.0 doesn't seem to
have it.  Did I just overlook it, or it not available?


-Matt Stegman
<[EMAIL PROTECTED]>

On Fri, 28 Jul 2000, Vic wrote:

> I wonder how you make your cron daemon do things
> in less increments than just on the hour?
> 
> I can make my system play a sound (a bong) to strike
> the hour by putting play bong.wav in my 0anacron
> file in the cron.hourly directory, but I want to
> have some other things happen like maybe every
> 30 minutes or on specific dates like appointment
> reminders if this is possible.
> 
> Thanks
> 
> Vic
> 

Reply via email to