cron/crontab ?

From: craig (craig_at_stellarnet.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 08:37:32 -0600


"crond" the cron daemon is running.

I have a directory /etc with the following sub directories/folders
cron.hourly
cron.daily
cron.weekly
cron.monthly

I have a file in /etc titled simply crontab
It's contents follows:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

Some of these folders have scripts in them already. I see one for yum
called yum.cron So then I assume yum is being run daily?

Can I can just write a script with the path to the script I wanted
executed hourly in the hourly.cron folder and it would be run by cron?

When I run (as root) #crontab -l it reports: "no crontab for root" I
thought this would list the yum.cron I mentioned above. Does that mean
to say crontab isn't being called by the running crond? If not how
would I go about activating the current .cron scripts?

thank you



Relevant Pages

  • cron messes up time format
    ... I've done this by using cron to run bash ... scripts which run python scripts which gather the data. ... since I think it's the difference between the bash shell I'm ...
    (comp.unix.bsd.freebsd.misc)
  • Re: [opensuse] Re: cron problems
    ... then job start logging is turned off. ... in message log when expected cron mail does a disappearing act. ... Which SUSE version is this? ... if the majority of the standard SuSE scripts explicitly log their status. ...
    (SuSE)
  • Re: What exactly does cron task weekly do?
    ... cron task weekly does. ... You don't have to run the scripts manually. ... I have never had my user crontab file modified in any way when prforming ... It is what anacron is for. ...
    (comp.sys.mac.system)
  • Re: cron messes up time format
    ... I've done this by using cron to run bash ... scripts which run python scripts which gather the data. ...   # `erase' character from control-H to DEL. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Cron and Expect
    ... >Eric Hart wrote: ... >> I am looking to call Expect scripts from Cron. ... >> variables and make them available to CRON jobs? ... >cron (most problems result from environment variables). ...
    (comp.lang.tcl)