Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] crontab entries not working
  • From: Ken Schneider <suse-list2@xxxxxxxxxxxxx>
  • Date: Thu, 18 May 2006 10:26:55 -0400
  • Message-id: <1147962415.1350.9.camel@xxxxxxxxxxxxxxxxx>
On Thu, 2006-05-18 at 08:52 +0200, Per Jessen wrote:
> Dave Howorth wrote:
>
> >> Correct format is :
> >> minute hour day-of-month month day-of-week <exec>
> >
> > Errm, not in /etc/crontab. You also need the username:
> >
> > # minute hour day-of-month month day-of-week user <exec>
> > 29 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
> >
>
> You're right of course - funnily, that means "man 5 crontab" is
> wrong ...
>

The time and date fields are:

field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)

Taken from man 5 crontab on SUSE 10.0

--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998


< Previous Next >
Follow Ups