Remulon Posted January 12, 2006 Posted January 12, 2006 Is anyone running a cron job on a file in their admin folder? I have a cron job set up to run a file in my admin folder and I can't get it to run. The file runs perfectly in a browser, but I cant get it to run from the cron. Here is my cron job: (0 0 * * *) curl -s -o /dev/null http://whatever/catalog/admin/file.php So I'm thinking that because the admin folder is htaccess protected, the cron wont run? Any help would be greatly appreciated. Thanks Remo.
OceanRanch Posted January 12, 2006 Posted January 12, 2006 I'm pretty sure you'll need to specify the full unix path of the file and not the http of the file in the crontab entry.
Remulon Posted January 12, 2006 Author Posted January 12, 2006 Thanks OceanRanch, but I have other (non-osC) crons running on my site in a similar manner, and they run like clockwork (no pun intended).
Remulon Posted January 16, 2006 Author Posted January 16, 2006 Anyone Please Help!! I still cannot run a cron on a file in my admin directory .... is it because of htaccess? Can anyone help? :blink:
Guest Posted January 16, 2006 Posted January 16, 2006 (0 0 * * *) curl -s -o /dev/null http://whatever/catalog/admin/file.php I know you have others working as above but try; (0 0 * * *) cd /home/beanshop/public_html/catalog/admin; curl -s -o file.php > /dev/null Is it curl that the file needs or is it php? If php then sub "/usr/bin/php" or "php" instead of "curl -s -o"
Guest Posted January 16, 2006 Posted January 16, 2006 Do you have shell access to try the command? You might try specifying the full path to curl. Try defining stderr and stdout and see what it contains. You could also try using lynx instead.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.