Mailinglist Archive: opensuse (4053 mails)
| < Previous | Next > |
Re: [SLE] CRON
- 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
/etc/crontab
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
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
like
* */10 * * * root /home/dog/myscript.sh
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.
>
>Thanks
>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 http://www.suse.com/support/faq and the
>archives at http://lists.suse.com
>
Chad Whitten
Network/Systems Administrator
Nexband Communications
chadwick@xxxxxxxxxxx
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
/etc/crontab
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
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
like
* */10 * * * root /home/dog/myscript.sh
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.
>
>Thanks
>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 http://www.suse.com/support/faq and the
>archives at http://lists.suse.com
>
Chad Whitten
Network/Systems Administrator
Nexband Communications
chadwick@xxxxxxxxxxx
| < Previous | Next > |