Configuring Cron Job on Linux Server

Started by Sudhakar, Feb 26, 2013, 10:44 PM

Previous topic - Next topic

Sudhakar

Today after 2 years i have came to configure a Cron job for an customer and refreshed my knowledge. And the same i would like to share.

This cron method will work both on Php4 & Php5 servers.

Wrong Format:

/usr/local/php5/bin/php5 /home/site-username/public_html/Logout.php
/usr/local/bin/php /home/site-username/public_html/Logout.php

Correct Format :
/usr/local/bin/php -q /home/site-username/public_html/Logout.php

Will explain in details on my free hours. More explanatory.