awk : actively tail a file & email when criteria is met
Evuraan::ഏവൂരാന്
evuraan at gmail.com
Wed Apr 22 20:46:30 UTC 2009
ok i got this to work:
tail -f /var/log/apache2/access.log | \
awk '/192.168.1.100/ {system("echo " $0 "| mailx -s test_email
me at email.com" ) }'
Thanks..!
2009/4/22 Loïc Grenié <loic.grenie at gmail.com>:
> 2009/4/22 Evuraan::ഏവൂരാന് <evuraan at gmail.com>:
>> 2009/4/22 Loïc Grenié <loic.grenie at gmail.com>:
>>> 2009/4/22 Evuraan::ഏവൂരാന് <evuraan at gmail.com>:
>>>> Greetings..!
>
More information about the ubuntu-users
mailing list