work praudit with tee & grep

sam samflanker at gmail.com
Tue Aug 21 06:36:06 PDT 2007


>>> Try the --line-buffered option to grep.  I've had a lot of luck with 
>>> it.  Something like the following may work for you:
>>>
>>> # praudit /etc/auditpipe | grep --line-buffered -e "xxx"
>>>
>>> If you just want to pipe to a file, use something like:
>>>
>>> # praudit /etc/auditpipe | grep --line-buffered -e "$" >> file.log
>>>
>>> HTH
>>> -----
>>> Eric F Crist
>>> Secure Computing Networks
>>>
>>>
>>>
>> thx
>> this not working
>> wite up buffer-pipe to 4096 bytes
>>
>
> Can I ask what is in the /etc/auditpipe file?
>
> -----
> Eric F Crist
> Secure Computing Networks
>
>
>
# ls -l /etc/auditpipe
ls: /etc/auditpipe: No such file or directory
# ls -l /dev/auditpipe
crw-------  1 root  wheel    1,  92 Aug 17 11:05 /dev/auditpipe

/Vladimir Ermakov


More information about the freebsd-hackers mailing list