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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -