Note To Self: Cron Job Syntax

February 9th, 2007

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!

Entry Filed under: Main

1 Comment


About Me Subscribe to me on FriendFeed

Name: Ryan Jones
Alias: HockeyGod
Location: Michigan
Company: Identity.net
Title: Sr. Mgr, Prod, Mktg
AIM: TheHockeyGod
Pets: Who Dey

Buy My Book

My Websites

NoSlang
FeedButton
Translate British
TextBunch
No Swearing
Fail Pictures

Twitter

    Recent Shoutwire Editorials

    Recent dotCULT Posts

    Related Posts:

    Subscribe To RSS Feed

    Link Me





    Random Fail