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.
是否有可能在 unix 中做这样的事情?
monit restart | pause 120 | monit status
我只是碰巧正在监视重新启动的监视器,然后我发现自己反复输出状态,直到我看到我在状态中寻找的变化。这要等到整整 2 分钟后才会发生。
所以我只是想知道是否有办法在一段时间后推迟执行 unix 命令。内置的任何东西都会更好,但如果编写一些实用程序脚本是唯一的方法,那也很酷。
谢谢!
monit restart && sleep 120 && monit status