Re: Crontabs

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



James Bensley wrote:
> The crontabs are like the following example;
>
> 30 20 * * * sh /home/a_user/nightlyscrips/nightly_script_1 >
> /home/a_user/nightlyscripts/`date +%d-%m-%Y--%H-%M-%S`.log
>
>   
I'm a big fan of keeping the contents of crontab very simple.  The only
thing I like to see in crontab is the path to the script, and the script
does all the tricky stuff.  If the script isn't called, you know cron is
at fault.  If the script is called and failed, then you know the script
is broken.  I find it makes it easy to determine where the problem is by
making life very simple for cron.

Just my 2c worth :)

Ian
_______________________________________________
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