🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.admin
Article #4067

Re: tail -f and log file rotation

#4067
From: Barry Margolin
Date: Thu, 01 Mar 2001 22:09
23 lines
2596 bytes
In article <t9thrboar8bh8e@corp.supernews.com>,
Vince <vlasfargues@yahoo.com> 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?

Practically all Linux utilities come from GNU.  So if Linux has tailf, you
can probably find it in the GNU fileutils, which should port to most
versions of Unix.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Technical Details
Message-ID: <tMzn6.20$_47.10844@burlma1-snr2>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!burlma1-snr2!not-for-mail
References: <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: 110f2c,28d4954342c36ebf
X-Google-Attributes: gid110f2c,public
X-Google-Thread: 11035d,28d4954342c36ebf
X-Google-Attributes: gid11035d,public
X-Google-Thread: 1020c6,28d4954342c36ebf
X-Google-Attributes: gid1020c6,public
X-Google-Thread: 115614,28d4954342c36ebf
X-Google-Attributes: gid115614,public
X-Google-ArrivalTime: 2001-03-01 14:10:08 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!burlma1-snr2!not-for-mail
From: Barry Margolin <barmar@genuity.net>
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: Genuity, Cambridge, MA
Mail-Copies-To: never
X-Newsreader: trn 4.0-test72 (19 April 1999)
Originator: barmar@genuity.net (Barry Margolin)
Lines: 23
Message-ID: <tMzn6.20$_47.10844@burlma1-snr2>
X-Trace: /Kp2lqy/cxazy4eq1GZqGzbWZavtYnPlVJL7aknPqHMFN/PJEOsyegFFjiJw5TMWf+sw46dcqlMS!TBN8x99k64tr5EM6/wLbTSvxzHm56fT1r4IZj0wLFt9HPntWA0E+HEYlW9ZC
X-Complaints-To: abuse@genuity.net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 01 Mar 2001 22:09:29 GMT
Distribution: world
Date: Thu, 01 Mar 2001 22:09:34 GMT