1

I generated a cronjob line for crontab -e with Crontab Generator:

* */2 * * * curl http://www.example.com/cron.php >/dev/null 2>&1

I was expecting that it should run every 2 hours. But in my Amazon server, the same line runs every 2 minutes instead of 2 hours. What's wrong with the above line? Can someone please guide me?

Thanks in advance!

1 Answer 1

3

You should use 0 */2 * * * istead of * */2 * * *.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .