Note To Self: Cron Job Syntax

How many of you write notes to yourself about things you constantly forget?

I’ve found one of the best methods of remembering stuff is to just blog about it. That way, I can just search my blog for the answer. It’s like having a 100% portable notebook. It’s also a good way to help other people who may have the same questions you do.

Like today for example, I needed to run a PHP script as a cron job, but I couldn’t remember the crontab syntax.

Here’s the command I enter to run my php script:


php -q /home/sitename/public_html/cronscript.php

Next time I forget that I need to use the -q option, I’ll know where to look!

http://solent-art.co.uk/assets/uploadify/uploadify.css About Ryan Jones

Ryan Jones is an SEO from Detroit. By day he works as a manager of SEO & Analytics at SapientNitro where his team performs SEO for Fortune500 clients. By night he's either playing hockey or attempting to take over the world with his own websites - which he would have already succeeded in doing had it not been for those meddling kids and their dog. The views expressed here have not been paid for and belong only to Ryan, not any of his employers or clients. Follow Ryan on Twitter at: @RyanJones, add him on Google+ or visit his personal website: www.RyanMJones.com