[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [MISC] Nimda statistik



On Wed, Sep 26, 2001 at 17:35:31 +0200, Uffe R. B. Andersen wrote:

> At 22:15 20-09-2001 +0000, Henrik Størner wrote:
> >cat /var/log/httpd/access_log | grep -i "$DATESTR.*cmd.exe" >/tmp/nimda.$$
> 
> Hvordan får man grep til at fange både "cmd.exe" og "root.exe"? Nimda kan 
> jo spørge efter begge og jeg får en del af begge slags. Jeg vil jo helst 
> undgå at skulle gennemgå log'en to gange.

Bruger egrep:

    .... | grep -i "$DATESTR.*exe" | egrep -v "cmd\.exe|root\.exe" ....

eller

    ....  egrep -v "$DATESTR.*cmd\.exe|$DATESTR.*root\.exe" ....


-- 
mvh Frank Damgaard  | http://home3.inet.tele.dk/frda/



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:24 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *