shell - How can I pipe command output to a pause command, which defers execution for a given length of time? -


is possible in unix?

monit restart | pause 120 | monit status 

i happen monitoring monit restarts , find myself repeatedly outputting status until see change looking in status. won't happen until 2 minutes later.

so wondered if there way defer unix command happen after time period. built in better, if writing utility script way, that's cool too.

thanks!

monit restart && sleep 120 && monit status


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -