Uttered Alexander Dalloz <alexander.dalloz@xxxxxxxxxxxxxxxx>, spake thus: > Hey! You and Douglas are right. :) I don't mind people saying that I'm right, as long as they don't sound surprized ;-) > 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. How do you mean "doesn't work"? There's nothing broken here; that command line should be fine. Hmmm... what shell do you use?
Attachment:
pgpd9QGRMIjpL.pgp
Description: PGP signature