Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP! with crons


Remulon

Recommended Posts

Posted

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.

Posted

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).

Posted

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:

Posted

(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"

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...