logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: FollowTail and seeking around: msg#00043

Subject: Re: FollowTail and seeking around

after playing around with POE::Wheel::FollowTail I wonder how to get the current position inside the read logfile, something like IO::File->getpos().

After reading the source for a while I finally use

my $fh  = $follow_tail->[ POE::Wheel::FollowTail::SELF_HANDLE ];
my $pos = sysseek( $fh, 0, SEEK_CUR );

for getting the position and the Seek parameter for setting it.

I noticed Seek and Seek back but nothing to find the current position inside the logfile let's say for saving its state for a _stop event.

Bye

Thomas




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>