View Single Post
Old 02-16-2012, 12:02 PM   #1
Junior Member
 
Join Date: Jan 2012
Location: Copenhagen, Denmark
Posts: 12
jimpannell is on a distinguished road
Default Problem with executing php scripts via Scheduler (cron)

Hi there

I've been having problems running php scripts via the scheduler that would normally be run via a url in the browser (for example, www.mydomain.com/script.php).

One particular script runs a mysql backup utility script. When I run it directly from the browser it works without issue, but when I run it via cron I get nothing.

I've tried the following with no success:

/usr/bin/wget -O -q http://www.mydomain.script.php
/usr/bin/php -q /path/to/script/
wget -q http://www.mydomain.script.php

My system is running Debian 6.

Any help would be greatly appreciated.

Cheers


Jim
jimpannell is offline   Reply With Quote