Re: cat cron jobs crontab: SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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/
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux