Re: kill script

2000-02-23 Thread Peter Palfrader aka Weasel
Hi David! On Wed, 23 Feb 2000, David Wiard wrote: > how about a csh/ksh version? this is for work on HPUX, but we > don't have bash. Sorry, I don't know those shells but if they don't have functions, you can still make a script like this one: #!/bin/tcsh kill -9 `ps -e | grep $1 | grep -v gre

Re: kill script

2000-02-23 Thread aphro
On Wed, 23 Feb 2000, David Wiard wrote: dave >i'm looking for a script/command that will do something equivalent to: dave > dave > ps -e | grep dave > kill -9 dave > dave >does anybody have something that will do this? i don't know how to dave >script well enough to do a script like this myse

Re: kill script

2000-02-23 Thread David Wiard
this is bad, i'm replying to my own message. i have the problem solved. thanks to Weasel. At 09:56 AM 2/23/00 -0800, David Wiard wrote: >how about a csh/ksh version? this is for work on HPUX, but we >don't have bash. > >At 06:44 PM 2/23/00 +0100, Peter Palfrader aka Weasel wrote: >>Hi David! >>

Re: kill script

2000-02-23 Thread David Wiard
how about a csh/ksh version? this is for work on HPUX, but we don't have bash. At 06:44 PM 2/23/00 +0100, Peter Palfrader aka Weasel wrote: >Hi David! >> function mykillall { >> kill -9 `ps -e | >> grep bash | >> grep -v grep | >> awk ' { print $1 } '` >> } > >replace bash with $1

Re: kill script

2000-02-23 Thread Peter Palfrader aka Weasel
Hi David! > function mykillall { > kill -9 `ps -e | > grep bash | > grep -v grep | > awk ' { print $1 } '` > } replace bash with $1 :) and then put this into your .bash{rc,_profile} -- Weaselhttp://www.cosy.sbg.ac.at/~ppalfrad/ PGP/GPG encrypted mess

Re: kill script

2000-02-23 Thread Peter Palfrader aka Weasel
Hi David! On Wed, 23 Feb 2000, David Wiard wrote: > i'm looking for a script/command that will do something equivalent to: > > ps -e | grep > kill -9 > > does anybody have something that will do this? i don't know how to > script well enough to do a script like this myself, yet.

kill script

2000-02-23 Thread David Wiard
i'm looking for a script/command that will do something equivalent to: ps -e | grep kill -9 does anybody have something that will do this? i don't know how to script well enough to do a script like this myself, yet. TIA -- dave wiard ([EMAIL PROTECTED]) The light that burns