每45天设置一次cron工作来使用cron执行我的php脚本?

时间:2012-01-07 12:28:55

标签: cron crontab crontrigger cron-task

我需要每隔45天在单线贝壳终端上运行我的cron。 请提供相同的解决方案

由于

1 个答案:

答案 0 :(得分:1)

  

* * * / 45 * * /temp/command.sh

它适用于linux,但hp unix无法接受它。

还有另一种选择:每天在命令下运行:

  

[$((($(日期+%s)/ 86400)%45)) - eq 0]&& /temp/command.sh