Stanley
Consider % kill -9 -1
there's a kindest way: examine all your pids with awk,
find out which is the father, and kill him.
But, the basic *pan* way is quite effective !
__________________________ `o O'
/\ jes...@eis.enac.dgac.fr\__________ooO__U__Ooo_________
\ \ Ader239, ENAC, 7 av E.Belin, 31055 TOULOUSE (FRANCE)\
\ \ you can find me at #62175852 ... if you're lucky \
\ \_______________________________________________________\
\/_______________________________________________________/
: Consider % kill -9 -1
I use:
kill -9 `ps -aux | grep $USER | grep sh | grep -v grep | awk '{print $2}'`
This kills all the current users shells, you could make it a little more
complex to only kill the login shell if you wanted to.
--
-Chris (cal...@math.utah.edu cal...@east.east-slc.edu)
I'd do:
kill -9 `ps -aux | grep $USER | grep '\-*sh' | grep -v grep | awk '{print $2}'`
That will kill login shells for most shells, not just the Bourne shell (sh)
such as csh, tcsh, zsh, ksh etc.
Liam.
--
Liam Crilly
L.Cr...@herts.ac.uk
<a href=http://altair.herts.ac.uk:8000/><i>
Not enough imagination for a quote.</i></a>