Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
bash check if process is running by name
GregT
Programming language:
Shell/Bash
2021-05-11 09:58:25
0
Q:
bash check if process is running by name
Syk
Code:
Shell/Bash
2021-03-02 20:40:11
if
pgrep -x
"<PROCESS_NAME>"
>
/dev/
null
; then echo
"Running"
else
echo
"Not running"
fi
1
Tags
name
run
check
Related
how to get process id in linux
how to check ssh agent is running in git bash
linux processes and display process name
check running process in linux
command running processes linux
check owner of process id linux
linux kill all process of a user
New to Communities?
Join the community