[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Command pipes and buffering
- Subject: [ale] Command pipes and buffering
- From: krum at smyrnacable.net (Kevin Krumwiede)
- Date: 23 Apr 2002 17:06:57 -0400
My iptables logging rules put 'firewall' in the log message. Just for
fun, I tried to watch for events using this command:
# tail -f -n 0 /var/log/kernel/warnings | grep firewall | cut -d' ' \
-f 3,10,17,18,19
It doesn't print anything until it has a bunch of lines to print.
Curiously, if I leave out the '-f -n 0' argument to tail it works (but
it's useless), and if I don't pipe through cut it works. If I just take
out the '-n 0' it doesn't work, even when the last few lines of the log
contain iptables messages.
Is there any way to control this?
Krum
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.