Re: Cron

Ajai Khattri <[email protected]> Fri, 9 May 2003 08:44:27 -0400
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
On Fri, May 09, 2003 at 10:36:09AM +0100, [email protected] wrote:

> When you type crontab -e this opens a default crontab file that you place
> you
> code into and then it saves it, or thats my understanding, how can you go

No. The crontab is where you would add a line describing how and when to
call your script. See man 5 crontab for details on the format. The last
field in the line would be a command line to run at the specified date/time.

> back
> and make changes to this file afer it has been saved and closed, as I am
> not sure
> where the crontab saves its default files too.

User crontabs are stored in /var/spool/cron.

> Also if I place file with cron instructions into the crontab.hourly
> directory how do I
> actually get the crontab process to start because when I type in ps -la
> which displays
> the process currently running on the system the crontab does not appear so

Check with ps -ef

> how do I
> start this process.

/etc/init.d/crond start

But it should start automatically at boot. If it doesn't then you may
want to do 'chkconfig --add crond' to add it to the current runlevel rc.d.

-- 
.jA
repoleveD \ .nimdA smetsyS