[Tfug] Cron job in Ubuntu - something is wrong :( - halp?

Jesse Allen jesse.carl at gmail.com
Thu Feb 5 22:08:01 MST 2009


On Thu, Feb 05, 2009 at 08:57:57PM -0700, Robert Hunter wrote:
> Third, bundle up all your purge-related commands into a single script
> and then invoke the script from cron.  This will allow you to debug
> your script independently of cron, and will make your crontab easier to
> read and maintain.

Seconded. If you make this into a nice shell script, then drop it into
/etc/cron.daily or make a file in /etc/cron.d to have www-data call the
script. See https://help.ubuntu.com/community/CronHowto for some good
tips on using cron effectively.

- Jesse

--------------------
Jesse Allen
BS Electrical Engineering




More information about the tfug mailing list