Ryan Jones Blog – dotCULT.com Ryan Jones Blogs About Internet Culture, Marketing, SEO, & Social Media

February 9, 2007

Note To Self: Cron Job Syntax

Filed under: Main — Ryan Jones @ 3:55 pm

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!

1 Comment

  1. Checkout @ http://www.enginepuller.com/engines/049/CronJob.aspx

    Comment by Thomas Shine — February 10, 2007 @ 3:12 am

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress