Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash check if process is running by name

if pgrep -x "<PROCESS_NAME>" > /dev/null; then
	echo "Running"
else
	echo "Not running"
fi
 
PREVIOUS NEXT
Tagged: #bash #check #process #running
ADD COMMENT
Topic
Name
5+8 =