简体   繁体   中英

Crontab running python script every minute instead of every two hour

I tried to execute crontab every 2 hour, but the script is getting executed every minute.

I used: * */2 * * * <path/to/python> <python_script>

Can anyone help with this?

if you want to execute crontab every 2 hours, use this.

0 */2 * * *

it run at minute 0 past every 2nd hour.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM