how to check if process is running or not every 10mins for one hour using shell -


e.g. process name test. if use below ps -ef | grep test see process running. want check every 10mins 1 hour , print success if it's running 1 hour. best way so?

put command shell script, , if process running when shell script ran print "success". add cron job runs every 10 minutes:

*/10 * * * * /path/to/scriptorcommand 

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -