How do you use cron? I have just started using it for backups, but it is a tool that should have a large number of applications. I would be interested in learning how different people use cron.

link|improve this question
feedback

migrated from stackoverflow.com Nov 21 '10 at 16:26

This question came from our site for professional and enthusiast programmers.

2 Answers

Some interesting uses?

  • Well, I used to use it on contracts to automatically submit an identical timesheet every week, because I was always working on the same tasks (and roughly the same hours). It saved me from having to put up with painful, unnecessary, timesheet applications.

  • We also used it to build a rudimentary mail-based status reporting application in a very tightly locked down, tiered network environment. Rather then suffer through all the pain of punching holes through the firewall, we used cron/ftp to forward "messages" which were then put into email form once we'd gotten them out of the secure area.

link|improve this answer
feedback

Anything that needs to occur on a regular basis.

  • Running the code that charges monthly subscription fees
  • Checking if other servers are up
  • Rotating log files
  • Pruning database tables of old data
  • Sending daily and weekly email reminders to users
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.