Re: FollowTail and seeking around
You could do a tell() on the wheels' file handle which is located at $wheel->[POE::Wheel::FollowTail::SELF_HANDLE] or $wheel->[0] for short. David On Mon, 18 Oct 2004 13:48:44 +0200, Thomas Nagel <[EMAIL PROTECTED]> wrote: > Hi, > > after playing around with POE::Wheel::FollowTail I wonder how to get the > current position inside the read logfile, something like IO::File->getpos(). > > 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. > > Am I missing something? Or is there a way to figure that out? > > Bye > > Thomas >
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
FollowTail and seeking around
Hi, after playing around with POE::Wheel::FollowTail I wonder how to get the current position inside the read logfile, something like IO::File->getpos(). 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. Am I missing something? Or is there a way to figure that out? Bye Thomas