Article View: comp.unix.admin
Article #4068Re: tail -f and log file rotation
From: Nate Eldredge
Date: Fri, 02 Mar 2001 00:29
Date: Fri, 02 Mar 2001 00:29
21 lines
2211 bytes
2211 bytes
"Vince" <vlasfargues@yahoo.com> writes: > 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? Get GNU tail (from the Textutils at ftp.gnu.org) and use the --follow=filename option. -- Nate Eldredge neldredge@hmc.edu
Technical Details
Message-ID:
<833dcxhv24.fsf@mercury.st.hmc.edu>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!sjc1.nntp.concentric.net!newsfeed.concentric.net!news.interworld.net!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: 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-Thread: 115614,28d4954342c36ebf X-Google-Attributes: gid115614,public X-Google-ArrivalTime: 2001-03-01 16:32:05 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!sjc1.nntp.concentric.net!newsfeed.concentric.net!news.interworld.net!not-for-mail From: Nate Eldredge <neldredge@hmc.edu> 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 Date: 01 Mar 2001 16:29:55 -0800 Organization: InterWorld Communications Lines: 21 Sender: nate@mercury.st.hmc.edu Message-ID: <833dcxhv24.fsf@mercury.st.hmc.edu> References: <t9thrboar8bh8e@corp.supernews.com> NNTP-Posting-Host: mercury.st.hmc.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: nntp1.interworld.net 983492999 11065 134.173.57.219 (2 Mar 2001 00:29:59 GMT) X-Complaints-To: usenet@news.interworld.net NNTP-Posting-Date: Fri, 2 Mar 2001 00:29:59 +0000 (UTC) User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5