I use a PHP web app for my invoicing runs. Part of this involves running a command every night to generate new invoices. Usually this is not a big deal because most invoices are created manually anyway. But I’m starting to get more auto-generated invoices, so I decided to whack the generation command into the crontab.

I noticed pretty quick that it wasn’t running. Not happy! I know that often this results from a problem with the command being executed (execution permissions) or incorrect times in the crontab line. But what it also depends on, is the correctness of the file up to that line. If a line is incorrect, cron will fail on that line, and so you (may) notice that your command doesn’t run!

Just make sure that all lines in the crontab are correct. Also, Debian requires the user to be listed in field 6, so most of the time when people say “add this line to your crontab” it won’t work in Debian- you need to add the user after the run time.

Written on February 12th, 2008 , Informative

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something

Personal jorunal of a professional geek – James Pearce in Perth, Australia