riccardo wrote:
 on SuSE list, noticed a tiny bash script which is handy :-

...........................

#!/bin/sh
#
# kill process/program
#
while true
do
kill -9 `ps aux | grep -i $1 | awk '{ print $2 }'` sleep 2
done

...........................

 remember " +x " - it needs chmod +x to make script executable.

 it is handy when, for example, Kmail gets stuck :-

 as root, command :    kl kmail
 - this will kill Kmail

or, if cups is not working right, then, delete the print-queue, and , as root, command :-
____________


 kl cups
 kl parallel
..............

 then, re-starts the cups daemon with command :  rccups start

best rgds
________



Outside of having the signal built in the command, is there any defference between doing this script, and using the killall command?

Mikkel
--

  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to