Search
 
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
Name
5+1 =