Tuesday, March 24, 2009

fcrontab เล็กๆน้อย กับ endian firewall

-x /bin/run-parts รันสคริปไฟล์ที่เจอในไดเรกทอรีนั้น เช่น
-x /bin/run-parts /etc/cron.daily -> รันสคริปทุกไฟล์ที่เจอในไดเรกทอรี cron.daily

DESCRIPTION
run-parts is a utility that will run scripts that are found in a direc-
tory. For example, it might be useful to create an /etc/cron.daily
directory and put scripts in there for daily cron jobs. Then run-parts
can be called once a day from root's crontab to run all the scripts
found in /etc/cron.daily:

40 4 * * * run-parts /etc/cron.daily

run-parts automatically skips files with certain suffixes that are gen-
erally associated with backup or extra files. Any file that ends in
one of these will be silently ignored: ~ ^ , .bak .new .rpmsave
.rpmorig .rpmnew .swp

AUTHOR
Patrick J. Volkerding , with ideas borrowed
from the Red Hat and Debian versions of this utility.

0 comments:

Twitter Delicious Facebook Digg Stumbleupon Favorites More