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.
次のcron式があります:
0 0 */30 * *
今から 30 日ごとではなく、毎月 30 日ごとに実行されるのはなぜですか? 式を持つ:
0 0 30 * *
同じ実行時間が得られます。
2013-07-30 00:00:00 2013-08-30 00:00:00 2013-09-30 00:00:00 2013-10-30 00:00:00 2013-11-30 00:00:00
atcronの代わりに使いたいと思うかもしれません。以下を使用して、今から 30 日後にスクリプトを実行するようにスケジュールすることができatます: at now +30 day /path/to/your/script
at
次に、スクリプトの末尾近くに同じ行を追加して、30 日後に再度実行するようにスケジュールします。