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

Re: looking for replacement for run (because of critical bug in



Today, Christian Kurz <shorty@debian.org> wrote:
> Well, this is a feature that tail on FreeBSD has. If you start it with
> -F, it will tail you the current file like our tail -f. But if know the
> logfile will be rotated, it will notice this and reopen the new current
> one and tail this one. This is a feature that I really miss in GNU tail.

Uh, is this what you mean?

$ echo bar > /tmp/foo
$ tail -f /tmp/foo & (sleep 1; echo baz >> /tmp/foo;
  sleep 1; echo qux > /tmp/foo)
bar[time passes]
baz[time passes]
        ==> /tmp/foo: file truncated <==
qux
$ fg
^C
$ tail --version
tail (GNU textutils) 2.0

-- 
Andreas Fuchs, <asf@acm.org>, <d96001@htlwrn.ac.at>, antifuchs
Hail RMS! Hail Cthulhu! Hail Eris! All hail Discordia!



Reply to: