How to run a cronjob every X minutes?

前端 未结 6 1071
走了就别回头了
走了就别回头了 2020-11-30 23:40

I\'m running a PHP script in a cronjob and I want to send emails every 5 minutes

My current (crontab) cronjob:

10 * * * * /usr/bin/php /mydomain.in/c         


        
6条回答
  •  再見小時候
    2020-12-01 00:14

    2 steps to check if a cronjob is working :

    1. Login on the server with the user that execute the cronjob
    2. Manually run php command :

      /usr/bin/php /mydomain.in/cromail.php

    And check if any error is displayed

提交回复
热议问题