Running a cron job on Linux every six hours

后端 未结 7 813
旧巷少年郎
旧巷少年郎 2020-11-29 19:32

How can I run command every six hours every day?

I tried the following, but it did not work:

/6 * * * * *  mycommand
7条回答
  •  一生所求
    2020-11-29 19:40

    0 */6 * * * command
    

    This will be the perfect way to say 6 hours a day.

    Your command puts in for six minutes!

提交回复
热议问题