【问题标题】:Cron job to run a script at the begining of the month在月初运行脚本的 Cron 作业
【发布时间】:2010-05-11 13:38:01
【问题描述】:

我想编写一个必须在每个月的第一天运行 PHP 脚本的 cron 作业。

你能帮我解决这个问题吗?

谢谢。

【问题讨论】:

    标签: cron


    【解决方案1】:

    添加到 crontab -e 这个:

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

    祝你好运!

    【讨论】:

      猜你喜欢
      • 2011-12-05
      • 2014-02-02
      • 1970-01-01
      • 1970-01-01
      • 2018-06-11
      • 1970-01-01
      • 2015-09-27
      • 2012-01-11
      • 2011-05-10
      相关资源
      最近更新 更多