Mailinglist Archive: opensuse (3217 mails)

< Previous Next >
Re: [SLE] Cron Jobs
----- Original Message -----
From: "Carlos E. R." <robin1.listas@xxxxxxxxxx>
To: "SuSE Linux E" <suse-linux-e@xxxxxxxx>
Sent: Wednesday, March 17, 2004 21:34
Subject: Re: [SLE] Cron Jobs


>
> The Wednesday 2004-03-17 at 20:26 -0700, Donald Henson wrote:
>
> > All I want to do is run a simple backup job every morning (early). I'm
> > pretty sure that I can set up the crontab entry to do that. What I don't
> > know is where to put it. I've looked at /etc/cron, /etc/cron.daily
> > (contains a number of scripts), etc. Is there an existing script that I
> > modify or do I create one from scratch? I'd really appreciate any
> > assistance here.
>
> Not there. Simply issue "crontab -e" as the user you want to run your job
> as. Those diretories you mentioned work diferently, you can not choose the
> exact hour they are run: only once a day, a week, etc.
>
> If you are not happy with vi as an editor, use instead "EDITOR=mcedit
> crontab -e" (or any other editor you like, but not an X one).

Another option is to use the 'read from file' option of crontab. Use whatever editor you prefer to create a file (I use cronset) which contains the necessary instructions for crontab. Then, you execute crontab passing it the filename as the only parameter.

$ crontab cronset

JimW


< Previous Next >
Follow Ups