What about pkill xmms for example ???
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`

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99
Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00
KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99
Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99
Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85
$8.00
VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57
Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42
$7.00
Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.98