[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Probs with 'tail -f foo | awk ...'

Hi *!

Since upgrading from Slack 2xxx to Debian 1.1 the following
construction doesn't work any more :-(

adson$ cat > test << EOF
>A 1
>B 1
>C 1

adson$ tail -f test | awk '$1 =="B"'

There should be the output "B 1" on stdout now, but nothing
happens. It works if I don't use the f-switch, but this is not what I

Any hints?!


P.S.: I tried both mawk and gawk.

P.P.S.: The lines above are only an example to illustrate my
problem. I would like to use this construction to react on certain
patterns in log-files (e.g. connection to my provider is up/down
etc.) [tail -n 0 -f /var/log/messages | awk -f foo.awk].
 Markus Hoevekamp                  Am Berg Fidel 94, D-48153 Muenster
 mh@adson.westfalen.de     Phone +49 251 7636633, Fax +49 251 7636634

Reply to: