Skip to content
Advertisement

CRON command to run URL address every 5 minutes

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?

Advertisement

Answer

Based on the comments try

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

[Edit: 10 Apr 2017]

This answer still seems to be getting a few hits so I thought I’d add a link to a new page I stumbled across which may help create cron commands: https://crontab.guru

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement