Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to kill looped process by command name

#!/bin/bash
while :
do
    echo "Press [CTRL+C] to stop.."
    for pid in $(ps -ef | awk '/your_process_name/ {print $2}'); do kill -9 $pid; done  
    							^keep / /	
    sleep 1
done
Comment

PREVIOUS NEXT
Code Example
Shell :: install glade pacman 
Shell :: running ethermine on linux 
Shell :: alfred intellij toolbox 
Shell :: 200 response .htaccess 
Shell :: linux How do you find files that have specific permissions? 
Shell :: curl cookie get 
Shell :: update n98-magerun2 
Shell :: error loading webview vscode ubuntu 
Shell :: open new terminal window with applescript 
Shell :: linux ssh 
Shell :: install az cli wsl 
Shell :: bash file properties 
Shell :: install Helm v3.x 
Shell :: how to clone pull all repositories from github 
Shell :: android emulator for ubuntu 
Shell :: stop raid array linux 
Shell :: unix rename file 
Shell :: how to push code into github reposityory 
Shell :: pip3 install requirements.txt 
Shell :: zsh slow cd 
Shell :: create cat document ubuntu 
Shell :: install jitsi on ubuntu 
Shell :: git push unable to create temporary object directory 
Shell :: fork git ubuntu 
Shell :: start with git and github 
Shell :: how to install snapcraft 
Shell :: ruby on rails install 
Shell :: git stash in file 
Shell :: powershell command shutdown computer 
Shell :: rpi install kodi 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =