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

1

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 "bash check if process is running by name"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language