Answers for "check if process is running by name linux"

2

bash check if process is running by name

if pgrep -x "<PROCESS_NAME>" > /dev/null; then
	echo "Running"
else
	echo "Not running"
fi
Posted by: Guest on June-16-2020

Code answers related to "check if process is running by name linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language