Satya forced the electrons to say:
> /etc/crontab contains, among other things, this:
> 02 4 * * * root run-parts /etc/cron.daily
>
> What does run-parts do? Why is the word 'root' in there?
run-parts is /usr/bin/run-parts on my RHL 6.0 system. It takes one argument,
the name of a directory, and runs every file inside the directory (excluding
[KS]??*.rpm{save,orig,new} (This regex is from the script itself). It is
written in bash script, and seems like a redhat extension (even though they
have attributed it to debian).
/etc/crontab is different from the crontab root sets for himself
(/var/spool/cron/root) in that, you can specify the username with which the
crontab should run in /etc/crontab. That is the extra "root" there - it says
all these crontab entries should run as root.
> Is /etc/crontab automatically checked and run as if it is root's crontab?
It is automatically checked, but it is run as the user specified there.
Binand
--
#include <stdio.h> | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c; | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c"; | printing program.
int main(){printf(p,10,34,p,34,10);return 0;} | Try it!!
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener