Re: OT: tail -f | while read
Are you using a 2.4 kernel ?
If yes, you should try the same thing with a 2.2 kernel.
If my guess is right, your line will works nicely.
Let me know
Le jeu, 06 sep 2001 13:23:09, Martin F Krafft a écrit :
> why does the following not work:
> tail -f /var/log/syslog | grep something | while read i; do myprog $i;
> i basically need to run myprog as soon as a new entry in syslog
> happens that matches the criteria of the grep call. it needs to happen
> martin; (greetings from the heart of the sun.)
> \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
> "the human brain is like an enormous fish --
> it is flat and slimy
> and has gills through which it can see."
> -- monty python
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact
Software Engineer - email@example.com
Lineo France - Lineo High Availability Group
42-46, rue Médéric - 92110 Clichy - France
phone (33).1.41.40.02.12 - fax (33).1.41.40.02.01