Tail-Problem
Andre Landwehr
andre.landwehr at gmx.net
Sun Dec 13 12:57:47 CET 1998
> kein problem: tail -n 10 daemon.log | grep bla | grep blupp
> kein problem: tail -f daemon.log | grep bla
> ein problem: tail -f daemon.log | grep bla | grep blupp
Ich hatte mich über die gleiche Sache vor längerer Zeit auch schonmal
geärgert. Meine Vermutung geht dahin, daß er die zweite Pipe erst öffnet
wenn die erste wieder geschlossen wurde. Aufgrund des " -f" wird sie aber
niemals wieder geschlossen und er kommt bei "blupp" nie an.
Wenn die Anwendung den Aufwand lohnt dann pipe den Output von "tail -f
daemon.log" doch einfach an ein kleines Perlscript, daß die gesamte
Weiterverarbeitung übernimmt. Damit _sollte_ es dann klappen.
Gruß
Andre
More information about the Linux
mailing list