logo       

Re: [Boston.pm] daemonizing a perl script: msg#00035

Subject: Re: [Boston.pm] daemonizing a perl script
File::Tail::App looked interesting. It has a "lastrun_file" for 
repositioning in case of early script termination. It appears to record 
the offset of last processed record. But this does not seem to work. On a 
restart, it begins record  from record 1 to force reprocessing of all 
data. I am sure that is not intended. I tried the example that was in the 
docs.

I dont have an email for Daniel Muey, the author.
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services; 
BAX Global Inc. Irvine-California
Tel: 714-442-7591   Fax: 714-442-2840




Tim Wilde <twilde-yJRlmlznMY/QT0dZR+AlfA@xxxxxxxxxxxxxxxx> 

Sent by: 
boston-pm-bounces+rnathan=baxglobal.com-PqP1ghmmPMdAfugRpC6u6w@xxxxxxxxxxxxxxxx
02/21/2006 12:00 PM

To
boston-pm-PqP1ghmmPMdAfugRpC6u6w@xxxxxxxxxxxxxxxx
cc

Subject
Re: [Boston.pm] daemonizing a perl script






On Tue, 21 Feb 2006, Ranga Nathan wrote:

> Thanks all for the responses....
>
> While talking to my son he pointed out that tailing xferlog would be  a
> problem when the log is being rotated. I would be looking at an old 
inode
> that has no activity. I looked at the system and found that the logs are
> rotated at 4AM every sunday. So, I need to change my approach.
>
> I found a number of modules like File::Tail and File::Tail::App. Looks
> like these modules will have the same issue.

Actually, File::Tail is smart, it does all kinds of complicated 
determination of the normal average time between entries, and if it hasn't 

seen an entry in more than that amount of time, it'll assume the log got 
rotated away and close/re-open.

Check out the Description section of the POD for more details:

http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm

Tim Wilde

-- 
Tim Wilde
twilde-yJRlmlznMY/QT0dZR+AlfA@xxxxxxxxxxxxxxxx
Systems Administrator
Dynamic Network Services, Inc.
http://www.dyndns.com/
 
_______________________________________________
Boston-pm mailing list
Boston-pm-PqP1ghmmPMdAfugRpC6u6w@xxxxxxxxxxxxxxxx
http://mail.pm.org/mailman/listinfo/boston-pm


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe