How do I set up a cronjob to ping the /cron page automatically?
In Linux, you can use various command-line tools to ping a webpage from your crontab.
In Windows:
NOTE: if you are not using the mod_rewrite plugin for friendly URLs, then the above examples all change "cerb4/cron" to "cerb4/index.php/cron".
Keywords: cron, scheduled tasks, job
Filed under:
- lynx --source "http://localhost/cerb4/cron"
- wget -O - --quiet "http://localhost/cerb4/cron"
In Windows:
- You can download a binary version of wget here.
- Set up a scheduled task to run:c:\wget\wget.exe --spider "http://localhost/cerb4/cron"
NOTE: if you are not using the mod_rewrite plugin for friendly URLs, then the above examples all change "cerb4/cron" to "cerb4/index.php/cron".
Keywords: cron, scheduled tasks, job
