开发者

Cron job to run a script at the begining of the month

开发者 https://www.devze.com 2022-12-29 18:11 出处:网络
I would开发者_运维技巧 like to write a cron job that has to run a PHP script on the 1st day of each month.

I would开发者_运维技巧 like to write a cron job that has to run a PHP script on the 1st day of each month.

Can you please help me with this?

Thanks.


Add to crontab -e this:

0 0 1 * * php /path/to/script.php

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号