execute crontab twice daily at 00h and 13:30

后端 未结 6 568
春和景丽
春和景丽 2020-12-10 00:30

i want to execute a script twice daily at 00:00 and 13:30 so i write :

0,30 0,13 * * *

it seems wrong for me, because like this, the script

6条回答
  •  既然无缘
    2020-12-10 01:16

    try ...

    00,30 00,13 * * * [ `date +%H%M` == 1330 ] || [ `date +%H%M` == 0000 ] && logger "its time"
    

提交回复
热议问题