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.
您如何使用 sleep 功能每分钟运行 bash 脚本 6 小时?
谢谢
设置一个 cron 作业不是更容易吗?
min hour day month weekday command */1 10-15 * * * /path/to/your/script
10-16 是运行 6 小时块的示例。10 是上午 10 点,15 是下午 3 点