DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
Check for process and kill if running Linux
if pgrep process_name 2>/dev/null; then echo "Terminating process_name" pkill process_name fi
Source by unix.stackexchange.com #
PREVIOUS
NEXT
Tagged:
#Check
#process
#kill
#running
#Linux
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit