Monthly Archives: July 2012

CRONTAB – Predefined scheduling definitions

Predefined scheduling definitions There are several special predefined values which can be used to substitute the CRON expression. Entry Description Equivalent To @yearly (or @annually) Run once a year, midnight, Jan. 1st 0 0 1 1 * @monthly Run once … Continue reading

Posted in Code Examples, PHP | Leave a comment

PHP Site Monitor Script (with email alerts or text messages.)

I run monitor script every five minutes and here is my cron entry: # PHP Web server monitor */5 * * * * /usr/bin/php /usr/local/scripts/monitor.php

Posted in Code Examples, PHP | Leave a comment