On Tue, 8 Oct 2002 12:04:17 +0800
"william villanueva" <[EMAIL PROTECTED]> 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....
>
> Thanks
>
save this in your ~/bin/killmoz
--start-killmoz--
#!/bin/sh
for i in `ps ax | grep -v -e grep | grep mozilla | awk '{print $1}'`
do
kill -9 $i
done
--end-killmoz--
may be your cut&paste created a new line instead of one line.
HTH
--
Jimmy Lim
Operation & Support Team Leader
Tricom
_
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]