Mailinglist Archive: opensuse (4348 mails)

< Previous Next >
RE: [SLE] getting CRON to run a backup script every hour between 8 am & 9 pm
  • From: "Alleman, Lowell" <lowella@xxxxxxxx>
  • Date: Fri, 18 Oct 2002 14:20:14 -0400
  • Message-id: <2F7747120C62D211AD4100805FA78E1A363F74@xxxxxxxxxxxxxx>
I assume that you meant "every day" and not "every hour"

The format is:

MIN HOUR DAY MONTH DAY_OF_WEEK PROGRAM

so you would want
0 8 * * * sh cptab

If you are editing it using "cron -e" then this works ok, but it you are
putting this is /etc/crontab then you need to add an extra field specifiy
thing username that you want the cron job to run as. For example:

0 8 * * * root sh cptab


For more info look at the man page:

from the command line:
man 5 crontab

In KDE you can use the URL:
man:/crontab(5)



Hope that helps.









> -----Original Message-----
> From: tabanna [SMTP:tabanna@xxxxxxxxxxxxxxx]
> Sent: Friday, October 18, 2002 2:12 PM
> To: SuSE List
> Subject: [SLE] getting CRON to run a backup script every hour
> between 8 am & 9 pm
>
>
> ~ Please, what is the correct "crontab" syntax ?
>
> i have tried :-
>
> * 8-21 * * * sh cptab {cptab is the name of the baclup
> script}
>
> ~ this is not working . . . any ideas, please ?
>
>
> thanks
>
>
> best wishes
>
> ____________
>
> sent on Linux
>
> ____________
>
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>

< Previous Next >
Follow Ups