Date: Wed, 22 Apr 2009 12:38:47 -0700 From: =?UTF-8?B?RXZ1cmFhbjo64LSP4LS14LWC4LSw4LS+4LSo4LWN4oCNIA==?= <evuraan@gmail.com> To: freebsd-questions@freebsd.org Subject: awk question (actively tail a file & notify when expression is found) Message-ID: <6fbcd0710904221238r1cb63d41qaa331beb683ffa95@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Greetings..! this works, tail -f /var/log/apache2/access.log | nawk '/192.168.1.100/{ print $0 }' and this too: tail -f /var/log/apache2/access.log |awk ' /192.168.1.100/ { system ("mail -s \"This works\" me@email.address")}' but this below, does not work tail -f /var/log/apache2/access.log |awk ' /192.168.1.100/ { print $0 | "mail me@email.address "}' Any pointers would be much appreciated. Thx.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6fbcd0710904221238r1cb63d41qaa331beb683ffa95>