Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
  • From: <dog@xxxxxxxxx>
  • Date: Mon, 27 Aug 2001 10:16:13 -0500 (CDT)
  • Message-id: <Pine.LNX.4.31.0108271008540.32152-100000@xxxxxxxxxxxxx>
ill try
if you want to something to run every hour or day or week or month,
just write a little script and put it in /etc/cron.daily or
/etc/cron.hourly, etc. the script can be anything, say if you want to
set your system time via ntp every day, just do this

echo "ntpdate -b -s some.ntp.server" > /etc/cron.daily/settime.cron
chmod 700 /etc/cron.daily/settime.cron

now, if you want to do things every minute or every 12 minutes or every
3rd monday or something like that, you will use the crontab file

the syntax for crontab entries are like
* * * * * /path/to/script/to/run

where the *'s represent

minute of hour

hour of day

day of month


day of week

or i think thats how it goes

so if you want to run a script every 10 minutes, you could do something
* */10 * * * root /home/dog/

On Mon, 27
Aug 2001, Ray Booysen wrote:

>Is there anyone who can help me understand how to use cron to do events at
>certain times.
>Ray Booysen
>To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
>For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
>Also check the FAQ at and the
>archives at

Chad Whitten
Network/Systems Administrator
Nexband Communications

< Previous Next >