Cheking if a named process is running

#!/bin/bash
if [ "$(pidof process_name)" ]
then
     echo "process_name is running"
else
     echo "process_name is not running"
fi

References:

Comments

Popular posts from this blog

How to recalibrate your Samsung Note 4 battery

How to import Tasker projects, profiles, tasks and scenes

How to turn your Windows 7 laptop or dekstop into a WiFi repeater or extender