Am Do, den 12.02.2004 schrieb Tommy Reynolds um 17:59: > Uttered Alexander Dalloz <alexander.dalloz@xxxxxxxxxxxxxxxx>, spake thus: > > > tail -f $LOGFILE | grep "$EXPRESSION" > > > > This does not work, you can't combine tail -f and grep. > > Sure you can. However, grep(1) is buffering the line, so you may be > being fooled. Turn this off by using: > > tail -f $LOGFILE | grep --line-buffered "$EXPRESSION" > > No huhu. Hey! You and Douglas are right. :) I just remembered wrong. Last time I fiddled with that I not only wanted to combine tail -f with grep but to let this run unattended and let the output redirect into a separate log file. Something like: tail -f $LOGFILE | grep "$EXPRESSION" >> $GREPPED.LOGFILE This does not work. Or do you know a solution for that? I know there are tools available for this task, to react on defined log events. Regards Alexander -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13 Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2149.nptl Sirendipity 18:15:43 up 3 days, 20:58, load average: 0.64, 0.23, 0.14 [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]