View Single Post
Old 04-18-2010, 08:30 AM  
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
Wow that works (with single quotes rather than double quotes):

ErrorLog "|/bin/grep -v \'File does not exist:\' >> /var/log/httpd/error_log"

Now, how do I test for two error conditions with grep?

not found or unable to stat
File does not exist:

I tried this and let's see if it works:

ErrorLog "|/bin/grep -v \'File does not exist:\' |/bin/grep -v \'not found or unable to stat\' >> /var/log/httpd/error_log"
__________________
www.gimmiegirlproductions.com
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote