CRON command to run URL address every 5 minutes

Mirgorod picture Mirgorod · Jul 7, 2012 · Viewed 174.3k times · Source

I'm newbie in cron commands and I need help.

I have a script on http://example.com/check/.

Whats is command for cron to run this URL every 5 minutes?

I tried

*/5 * * * * /home/test/check.php

But I want to run URL not relative script address. How to do it?

Answer

Yan Berk picture Yan Berk · Jul 7, 2012

Use cURL:

*/5 * * * * curl http://example.com/check/