Answers for "bash kill all process started by script on exit"

1

Check for process and kill if running Linux

if pgrep process_name 2>/dev/null; then
  echo "Terminating process_name"
  pkill process_name
fi
Posted by: Guest on May-11-2021
0

how to kill a process in linux

ps aux | grep chrome
Posted by: Guest on September-03-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language