Berkeley CSUA MOTD:Entry 23933
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/29 [General] UID:1000 Activity:popular
5/29    

2002/2/21 [Computer/SW/Languages, Computer/SW/Languages/Misc, Computer/SW/OS/FreeBSD] UID:23933 Activity:high
2/20    I'm doing tail -f file.  The file gets automatically rotated by
        another process every so often.  My tail then looks at a file that
        no longer updates while the new logfile continues getting data I'm
        not seeing.  Is there a way to easily detect when my file has rotated
        or even better some program/script that can detect the change and
        switch to the new file?  This is a qmail logfile if that matters.
        Thanks!
        \_ I believe xtail does that.
           \_ I'll check it out.  Thanks.  Hopefully it has a text-only mode?
              \_ Don't let the name fool you. If you run FreeBSD, you can
                 find it in /usr/ports/misc/xtail. Otherwise:
                 http://www.giovannelli.it/~gmarco/files/xtail-2.1.tar.gz
                 \_ I love the motd!  Thanks!  -OP
        \_ kqueue(2)