Shell command question
Deven.Phillips at webmail.hnl.viata.com
Deven.Phillips at webmail.hnl.viata.com
Fri Sep 8 04:30:52 PDT 2000
Steve,
Here's the correct way top accomplish this.
fgrep -e DENIED /var/log/squid | grep -v real.com | grep -v adserver.com | \
tail -f
You should be able to append as many adservers as you may want.
Deven Phillips, CISSP
BTW - I'm back from vacation.
steve at iwsys.com said:
> I use the following command to have a scrolling screen of all denied
> requests to my squid web cache:
>
> tail -f /var/log/squid/access.log | grep DENIED
>
> How would I do the same and have a small list of lines to exclude in the
> results. I want all denied requests except those to real.com and the ad
> servers I block.
>
> I know there are a million ways to do what I want, but I'd prefer a one
liner.
>
> Thanks,
>
> Steve
>
>
> ---
> You are currently subscribed to luau as: dphillips at viata.com
> To unsubscribe send a blank email to $subst('Email.Unsub')
>
--
Security Officer
Viata Online, Inc.
More information about the LUAU
mailing list