Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在每 45 天后在单行 shell 终端中运行我的 cron。请提供一些相同的解决方案
谢谢
* * */45 * * /temp/command.sh
它适用于linux,但它不能被hp unix接受。
还有另一种选择:每天运行以下命令:
[ $(( ($(date +%s)/86400) % 45 )) -eq 0 ] && /temp/command.sh