On the qmail list [EMAIL PROTECTED] wrote:
>
>cat *|tailocal|grep orbs|less

You launch that every few seconds or so?  Or is that a 'less +F'?

Does anyone know of a way to monitor a file for occurences of
certain words?  I tried 'tail -f $FILE | grep $TRIGGERS | less +F'
but there seems to be a stdin/stdout buffer in grep that delays
the flow, so that the offending lines are only displayed after
there has been a lot of them :-(

Didn't have the time to muck around in grep to try and
disactivate the buffer, didn't find any shell variable that
would do it (tried bash, are there others?  Even sh, I'll use
it just for that).  Thought about patching 'less' so that only
searched-for (highlighted) lines would show, but 'less' author
said that would be a major job ... so I just threw up my hands.

Any suggestions?

-- 
#include <std_disclaim.h>                          Lorens Kockum

Reply via email to