DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+8 =
Submit