On Wed, 22 Apr 2009 12:38:47 -0700, Evuraan::ഏവൂരാന് evur...@gmail.com
wrote:
but this below, does not work
tail -f /var/log/apache2/access.log |awk ' /192.168.1.100/ { print
$0 | mail m...@email.address }'
I would suggest to keep the system() approach:
tail -f
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\ m...@email.address)}'
but this below, does not work
tail -f /var/log/apache2/access.log
You might want to look at ``swatch'' which is designed to do
this, and monitors multiple log files simultaneously.
On Wed, Apr 22, 2009, Evuraan:: wrote:
Greetings..!
this works,
tail -f /var/log/apache2/access.log | nawk '/192.168.1.100/{ print $0 }'
and this too:
nevermind, i got it to work, with a little help from
http://student.northpark.edu/pemente/awk/awk_sys.txt,
tail -f /var/log/apache2/access.log | awk '/192.168.1.100/
{system(echo $0 | mailx -s test_email m...@email.com ) }'
thx..!
2009/4/22 Bill Campbell free...@celestial.com:
You might want