[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] need help with cron



> 0 * * * * wget -q -O -
> http://www.domain.com/phpAds/maintenance/maintenance.php
>
> but it is not running. Any ideals? I need a solution i am lost. 

If you can execute PHP scripts from the command line, then try the following 
instead:

0 * * * * /usr/bin/php 
/home/sites/siteXXX/web/phpAds/maintenance/maintenance.php >/dev/null

Wget is the wrong tool for this anyway and if at all, then you should use Lynx 
instead. I think the following syntax once worked for me:

0 * * * * /usr/bin/lynx -dump 
http://www.domain.com/phpAds/maintenance/maintenance.php >/dev/null

-- 

With best regards,

Michael Stauber