How can I run command every six hours every day?
I tried the following, but it did not work:
/6 * * * * * mycommand
How can I run command every six hours every day?
I tried the following, but it did not work:
/6 * * * * * mycommand
Please keep attention at this syntax:
* */6 * * *
This means 60 times (every minute) every 6 hours,
not
one time every 6 hours.
You need to use *
0 */6 * * * /path/to/mycommand
Also you can refer to https://crontab.guru/ which will help you in scheduling better...