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
Christophe
Le jeu, 06 sep 2001 13:23:09, Martin F Krafft a écrit :
> hi,
> why does the following not work:
>
> tail -f /var/log/syslog | grep something | while read i; do myprog $i;
> done
>
> 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
> immediately.
>
> thanks,
> 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 debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
--
Christophe Barbé
Software Engineer - christophe.barbe@lineo.fr
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
http://www.lineo.com
Reply to: