Article View: comp.unix.admin
Article #4065Re: tail -f and log file rotation
From: Paul Sack
Date: Sat, 03 Mar 2001 03:00
Date: Sat, 03 Mar 2001 03:00
20 lines
2220 bytes
2220 bytes
In article <t9thrboar8bh8e@corp.supernews.com>, Vince wrote: >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? I had another idea that we used at $EMPLOYER[-1]. Make a named pipe. Add this named pipe to syslog.conf. Do ``tail -f'' with named pipe. -- The world is coming to an end. Please log off.
Technical Details
Message-ID:
<8lmp79.k53.ln@jefe>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!arclight.uoregon.edu!logbridge.uoregon.edu!pln-w!extra.newsguy.com!lotsanews.com!cyclone.tampabay.rr.com!cyclone.austin.rr.com!cyclone2.austin.rr.com!typhoon.austin.rr.com.POSTED!not-for-mailReferences:
<t9thrboar8bh8e@corp.supernews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,28d4954342c36ebf X-Google-Attributes: gidfc89c,public X-Google-Thread: 115614,28d4954342c36ebf X-Google-Attributes: gid115614,public X-Google-Thread: 1020c6,28d4954342c36ebf X-Google-Attributes: gid1020c6,public X-Google-Thread: 11035d,28d4954342c36ebf X-Google-Attributes: gid11035d,public X-Google-Thread: 110f2c,28d4954342c36ebf X-Google-Attributes: gid110f2c,public X-Google-ArrivalTime: 2001-03-02 19:18:05 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!arclight.uoregon.edu!logbridge.uoregon.edu!pln-w!extra.newsguy.com!lotsanews.com!cyclone.tampabay.rr.com!cyclone.austin.rr.com!cyclone2.austin.rr.com!typhoon.austin.rr.com.POSTED!not-for-mail From: paul-sackun@jefe.eyep.net (Paul Sack) Newsgroups: comp.unix.admin,comp.unix.aix,comp.unix.programmer,comp.unix.solaris,fr.comp.os.unix Subject: Re: tail -f and log file rotation References: <t9thrboar8bh8e@corp.supernews.com> Organization: we don't need no steenking organization Reply-To: paul-sackun@jefe.eyep.net User-Agent: slrn/0.9.6.3 (Linux) Message-ID: <8lmp79.k53.ln@jefe> Lines: 20 Date: Sat, 03 Mar 2001 03:00:08 GMT NNTP-Posting-Host: 24.93.45.199 X-Complaints-To: abuse@rr.com X-Trace: typhoon.austin.rr.com 983588408 24.93.45.199 (Fri, 02 Mar 2001 21:00:08 CST) NNTP-Posting-Date: Fri, 02 Mar 2001 21:00:08 CST