[CentOS] cat cron jobs crontab: SOLVED

Florin Andrei florin at andrei.myip.org
Tue Mar 13 18:31:34 UTC 2007


Karl R. Balsmeier wrote:
> 
> #put in whatever cron checks you need, one by one...
> echo "*/3 * * * *  /usr/lib64/nagios/plugins/check_megaraid_passive.sh > 
> /dev/null 2>&1" >> /var/spool/cron/root

How are you going to remove or modify that line in a _safe_ and simple 
fashion when you'll have to?
Are you verifying if someone or something else has opened the 
/var/spool/cron/root file for editing while you're messing with it?

With a dedicated file (separate files for each task / purpose / 
application / whatever) in /etc/cron.d changes or an altogether removal 
are both trivial and safe.

-- 
Florin Andrei

http://florin.myip.org/



More information about the CentOS mailing list