So we have a script – myscript.sh – which is running on a linux box and we want to kill it quickly with the minimum of fuss:
root@linux# kill $(pgrep <script_name>)
Here is the explanation:
We use “pgrep” to grep the running process list and returns a process’s PID :
[root@linux]# pgrep myscript.sh 20104
And combine it with the kill command to make a one-liner:
[root@linux]# kill $(pgrep myscript.sh) [root@linux]#
More info on pgrep and kill on the man pages:
http://linux.die.net/man/1/pgrep


[465]3333 Official Login | সেরা অনলাইন ক্যাসিনো ও স্লট গেমস,3333 অ্যাপ ডাউনলোড করে সেরা অনলাইন ক্যাসিনো গেমসের অভিজ্ঞতা নিন। এখানে বিকাশ দিয়ে সহজ ডিপোজিট পদ্ধতি এবং স্লট গেম খেলার নিয়ম জানা যাবে। আজই যোগ দিন। visit: 3333
Great community vibe and the games are always updated. It feels like a real digital pub for gamers. I’m spending most of my free time on ph203pub now.
Really convenient app for anyone on the go. The layout is clean and everything works exactly as it should. Download nutristarapp and see for yourself.
Everything from the layout to the game selection is top-notch. I feel very secure playing here and the rewards are generous. Go check pknb999 right now.
Fast login and an amazing variety of games to choose from. I spent the whole evening here and had a blast. Check out 32jilicasinologin