On Tue, Oct 08, 2002 at 12:04:17PM +0800, william villanueva wrote:
> Federico Sevilla III wrote:
> > On Tue, Oct 08, 2002 at 10:05:59AM +0800, Jimmy wrote:
> >> $for i in `ps ax | grep -v -e grep | grep mozilla | awk '{print
> >> $1}'`;do kill -9 $i;done
> >
> > Hey. Neat!
> >
> > Save this in ~/bin/killmoz and you're off. Whenever Mozilla's a little
> > nuts, just run
> >
> > $ killmoz
>
> err... I just tried this and I got:
>
> syntax error near unexpected token `do'
>
> any recommendations? I just cut and paste the whole command....
you could use the modified script that Jimmy posted in response...
or... you could find out if you have /usr/bin/killall and use
killall -9 mozilla-bin (or variant)
in debian, it's part of the psmisc package.
i'm not sure which RPM it's in.
other neat features of killall include the -i (for interactive)
option. plus, it will also work for other processes besides mozilla.
you don't _really_ need a script for that do you?
--
___ eric pareja (xenos AT ice.onosendai.org) User #8159 http://counter.li.org
\e/ [ Chiba City: A Cyberpunk MUSH - http://chibacity.erisian.net ] GNU/Linux
v [ Philippine Linux Users' Group + http://plug.linux.org.ph ] Software &
[ Free the books! http://www.bookcrossing.com/referral/pusakat ] Freedom
"...the symbol is nothing. It is the reality behind every symbol that is all."
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]