crontab Qs: what is "run-parts" & how 2 display all crontabs?

From: Matt (matt_at_downwithspammers-mengland.net)
Date: 10/31/04


Date: Sun, 31 Oct 2004 11:58:12 -0600

Hello,

I have the following 2 crontab questions I have to resolve in my
man-page reading. Can anyone help me with these?

1) Where can I read about the general format spec of my /etc/crontab,
and specifically, what does the "run-parts" text mean in my
/etc/crontab below? I see from the file that it appears to be running
the scripts in the directories hourly, daily, etc. However, I would
like to read "chapter and verse" in a crontab spec how this is
supposed to work. I wanted to see something in the man page like
"with the 'run-parts' directive, crontab runs script in each directory
[...]," but I saw no such thing. Any pointers or references would be
greatly appreciated.

2) How can I display all the crontabs for every account? Something
analogous to 'crontab -u * -l' ...which does not work.

Thanks for any help,
-Matt

12:52pm [~] 12> uname -rs
Linux 2.4.20-021stab022.6.777-enterprise
12:52pm [~] 13> cat /etc/crontab
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
12:52pm [~] 14>



Relevant Pages

  • Re: crontab Qs: what is "run-parts" & how 2 display all crontabs?
    ... man 5 crontab. ... run-parts is a small program that runs all the shell scripts in the ... scripts in /etc/cron.hourly/ on the first minute of every hour, ... for USER in bob fred joe xyzzy bill ted; ...
    (comp.os.linux.setup)
  • Re: crontab Qs: what is "run-parts" & how 2 display all crontabs?
    ... man 5 crontab. ... run-parts is a small program that runs all the shell scripts in the ... scripts in /etc/cron.hourly/ on the first minute of every hour, ... for USER in bob fred joe xyzzy bill ted; ...
    (comp.os.linux.misc)
  • crontab Qs: what is "run-parts" & how 2 display all crontabs?
    ... I have the following 2 crontab questions I have to resolve in my ... Where can I read about the general format spec of my /etc/crontab, ... the scripts in the directories hourly, daily, etc. ... "with the 'run-parts' directive, crontab runs script in each directory ...
    (comp.os.linux.misc)
  • Re: FC" Cron Error - Newbe Question
    ... It looks like the file is combining entries for /etc/crontab (the system ... crontab file) and root's personal crontab /var/spool/cron/root. ... Using crontab -e as root will edit the file ... the entries for run-parts are trying to run a command ...
    (Fedora)
  • FC" Cron Error - Newbe Question
    ... I am getting an error for Cron: ... My Crontab looks like this: ...
    (Fedora)