AFP548

PHP Crontab Job

Hi,

I have setup the following crontab job to run every 30 mins:

#!/usr/local/php/bin/php
*/30 * * * * /Volumes/Data/website/weather/weather.php -q >/dev/null

I installed this file in /var/con/tabs as weathercron and then executed: crontab /va/cron/tabs/weathercron as root. It copied this to root in /var/cron/tabs.

Will this work as written? It's a PHP file that when executed via web browser grabs an XML weather feed and outputs a TXT file that I have embedded as a PHP include on another web page.

TIA,

C
Exit mobile version