Forking pipes?
I'm running the dynamic virtual hostins stuff available in Apache2, but I'm running into a snag.
The dynamic hosting does not seem to allow you to have different log files for different virtual hosts.
I like to use webalizer for each domain so the users can see their stats, but I don't want them to see other peoples stats. So right now I gep through the log file for the base domain name and redirect it through webalizer. For a couple domains it's fine, but I'm having to grep through the file 50 time each time I run the webalizer cron.
Does anyone know if there are any utilities like a mix of tee and egrep? I would like to tohave anything matching the regular expression be sent to stdin on a specified program and the rest passed on to standard out.
Ideally it would look something like:
cat log | tee-grep regex1 'prog to tak the matching output' | tee-grep regex2 'prog' | tee-grep regex 3 'prog'
Does anything like this exist? If so, where can it be found?
The dynamic hosting does not seem to allow you to have different log files for different virtual hosts.
I like to use webalizer for each domain so the users can see their stats, but I don't want them to see other peoples stats. So right now I gep through the log file for the base domain name and redirect it through webalizer. For a couple domains it's fine, but I'm having to grep through the file 50 time each time I run the webalizer cron.
Does anyone know if there are any utilities like a mix of tee and egrep? I would like to tohave anything matching the regular expression be sent to stdin on a specified program and the rest passed on to standard out.
Ideally it would look something like:
cat log | tee-grep regex1 'prog to tak the matching output' | tee-grep regex2 'prog' | tee-grep regex 3 'prog'
Does anything like this exist? If so, where can it be found?
