Article View: comp.unix.admin
Article #4066tail -f and log file rotation
From: Vince
Date: Thu, 01 Mar 2001 22:04
Date: Thu, 01 Mar 2001 22:04
15 lines
1740 bytes
1740 bytes
I suppose I'm not the only one to have the following problem: I use "tail -f" to get the new entries in the syslog file. But when the file is renamed (because it's too big or too old), tail is stuck on the renamed file, which is not appended anymore. I've heard about "tailf" (linux) or the option "tail -fname", but there is nothing like that on Solaris, HP-UX or AIX. Where can I get some source code to build my own tail that will support this option or will follow and returned the entries inserted in the new syslog file? Thanks for your help. Vincent
Technical Details
Message-ID:
<t9thrboar8bh8e@corp.supernews.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,28d4954342c36ebf,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 11035d,28d4954342c36ebf,start X-Google-Attributes: gid11035d,public X-Google-Thread: 110f2c,28d4954342c36ebf,start X-Google-Attributes: gid110f2c,public X-Google-Thread: 1020c6,28d4954342c36ebf,start X-Google-Attributes: gid1020c6,public X-Google-Thread: 115614,28d4954342c36ebf,start X-Google-Attributes: gid115614,public X-Google-ArrivalTime: 2001-03-01 14:04:53 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Vince" <vlasfargues@yahoo.com> Newsgroups: comp.unix.admin,comp.unix.aix,comp.unix.programmer,comp.unix.solaris,fr.comp.os.unix Subject: tail -f and log file rotation Date: Thu, 1 Mar 2001 16:04:53 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <t9thrboar8bh8e@corp.supernews.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: newsabuse@supernews.com Lines: 19