Why is my cron executed just once?

Username epiz_28467059

Error Message

I created a cron, as following:
| Minutes | Hours | Command |
| 2 | |http://excangyin.ml/cron/cron.php|

and the content of PHP script is:

<?php date_default_timezone_set('Asia/Shanghai'); file_put_contents( $_SERVER['DOCUMENT_ROOT'] . '/cron/cron.log', 'executed at '. date('H:i:s') . PHP_EOL, FILE_APPEND ); echo date('H:i:s'); ?>

But the script is executed just once. Wy is that?

1 Like

As what I understand, the command should be executed every 2 minutes.

Cron jobs on this hosting are weird. Try setting the hours 1 and see if it makes a difference.

3 Likes

Thanks for reply. I’ll try it.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.