> >>Does anyone know of a way to monitor a file for occurences of
> >>certain words?  I tried 'tail -f $FILE | grep $TRIGGERS | less +F'

I cannot reproduce any delays using "tail -f $FILE | grep $TRIGGERS",
except for a little delay of about one second.

> grep -V       
GNU grep version 2.0

What may cause the delay is a missing newline.  Grep scans for lines
that match $TRIGGERS and a line seems to be defined as any number of
chars followed by a newline or eof.  Now in the pipe there is no eof
and if the newline is missing grep will wait until the next line
arrives.


Dirk

Reply via email to