wget/lynx not working in cron

Avatar
  • Answered
I've tried both of commands below, none of them working.

wget -O /dev/null "http://MyDomainName/index.php?option=com_community&task=cron" > /dev/null

lynx -source "http://MyDomainName/index.php?option=com_community&task=cron" > /dev/null

The url above is valid & working in browser (FF, Chrome).

Note: MyDomainName is replaced to my valid doman name when testing.


Reference site:
http://www.jomsocial.com/support/docs/item/720-setting-up-cron-job-scheduled-task.html
Avatar
Scott
Hello Dustin, wget is disabled on our shared servers. I have an article here that fully explains the format for the lynx command when using a cron. Yours is almost in the correct format for our servers, however it is missing a 'useragent' component. Best Regards, Scott M