Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
File::Tail on win32by perlAffen (Sexton) |
on Nov 29, 2005 at 22:45 UTC ( [id://512791]=perlquestion: print w/replies, xml ) | Need Help?? |
perlAffen has asked for the wisdom of the Perl Monks concerning the following question:
I have been trying to use this module to do a tail -f on a windows logfile. I had some perl code to do it that I posted before and below, but it was reading the whole file and thus using too much memory. I tried ppm to load File::Tail and it looks for File::HiRes, yet the PM goes in Time::HiRes. I have struggled for hours trying to get this PM loaded. I am ready to pay someone to help me. I just need an efficient way to that won't use alot of memory to 'tail -f' a large windows file. That is all. perl somescript.pl thefile > outputfile I have this
but it is a memory hog. Plus, sometimes I am not allowed to install PMs like File::Tail. I like this offered by another Monk, but I am not skilled enough (see above) to turn it into efficient code. Can anyone help with making the above not read through the whole file, possibly becoming more memory efficient ? Thanks
Back to
Seekers of Perl Wisdom
|
|