30
5
I have been digging through my Linux system. To try and understand how it all works
In the /etc/crontab file. I see the following
# 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
What is run-parts, what does it do, and how can I use it.
1What is the
root
portion for? – Jake N – 2012-11-09T12:59:42.5431@jakenoble
root
means that the command (run-parts
in this case) will be run as root user – Stefan Haberl – 2013-08-30T09:36:59.7707Note that on CentOS (at least el5) run-parts is a bash script that doesn't have any options so you will get "-v is not a directory". Or at least that's what it shown me on my system. – Nux – 2013-12-17T14:03:42.427