Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
RE: [SLE] Cron
  • From: "Olson, David" <OlsonD@xxxxxxxx>
  • Date: Mon, 1 Apr 2002 09:05:09 -0500
  • Message-id: <31711CC0992AD511A2AF00508BDE914D010AA722@xxxxxxxxxxxxxxxxxxxxxxx>
I would also suggest the following change to create log of the process. It
makes it easier to debug:

0 19 * * * /usr/bin/backup > /usr/logs/backup.cron.log 2>&1


I put cron in the log name, as a way of reminding me what runs the process.

Dave

-----Original Message-----
From: Paul Miles [mailto:paul.miles@xxxxxxxxxxxxxxxx]
Sent: Monday, April 01, 2002 7:58 AM
To: Richard Ibbotson; suse-linux-e@xxxxxxxx
Subject: Re: [SLE] Cron


> The script works fine but I can't get cron to run the script which is
> called backup and is in /usr/bin/backup. Would the syntax be
> something like this to run at 7.00 p.m. at night ? ...
>
> 14 0 * * * root /usr/bin/backup

try :

bash> crontab -u root -e
0 19 * * * /usr/bin/backup

This will run backup at 7pm every night as user root.

Kind regards,

Paul Miles
All Secure Networks

Visit www.allsecuredomain.com for low cost
web hosting and domain registration


----- Original Message -----
From: "Richard Ibbotson" <richard@xxxxxxxxxxxxx>
To: <suse-linux-e@xxxxxxxx>
Sent: Monday, April 01, 2002 2:52 PM
Subject: [SLE] Cron


> Hi
>
> I'm trying to understand the syntax for a cron job that I'd like to
> run once a day. I've put a script into /usr/bin which will create a
> tape archive once a day and then drop it into a CD with CD-Record.
>
> The script works fine but I can't get cron to run the script which is
> called backup and is in /usr/bin/backup. Would the syntax be
> something like this to run at 7.00 p.m. at night ? ...
>
> 14 0 * * * root /usr/bin/backup
>
> Probably not but some help would be welcome. Read the man pages and
> other docs. Didn't make a lot of sense to me.
>
> Thank you
>
>
> --
> Richard
>
> --
> 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 archives at http://lists.suse.com
>
>


--
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 archives at http://lists.suse.com
< Previous Next >
This Thread
  • No further messages