Date: Tue, 21 Aug 2007 17:35:48 +0400 From: sam <samflanker@gmail.com> To: Eric Crist <mnslinky@gmail.com> Cc: freebsd-hackers@freebsd.org, Robert Watson <rwatson@FreeBSD.org> Subject: Re: work praudit with tee & grep Message-ID: <46CAEA34.40409@gmail.com> In-Reply-To: <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com> References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> <46CADFF9.2000700@gmail.com> <C48660DC-BD8A-4D38-A0BC-4707921E4799@gmail.com> <46CAE6C7.5060706@gmail.com> <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46CAEA34.40409>