To me is very handly for those multi-treadh apps...
Code for die
Instead of kill -9 pid...you can do "die appname"Code:#!/bin/bash kill -9 `ps aex | grep $1 | grep -v grep | awk '(print $1}'`
Ex: die xmms
To me is very handly for those multi-treadh apps...
Code for die
Instead of kill -9 pid...you can do "die appname"Code:#!/bin/bash kill -9 `ps aex | grep $1 | grep -v grep | awk '(print $1}'`
Ex: die xmms
What about pkill xmms for example ???
I didn't know !Originally Posted by mikekgr
Thanks for the info :P pgrep is a nice command to learn too
![]()
![]()
orwould kill all xmms programsCode:"kill `pidof xmms`
andshould kill offCode:kill `pidof -s xmms`

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G
$449.99
HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD
$249.99
Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset
$129.99
Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC
$250.00
Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD
$199.99
Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*
$369.99
Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server
$689.00
1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU X
$175.00
Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter
$225.00
$280.00