Hi,

I am trying to read from a log file which increase continuously almost every second. The file is stored on a Windows based computer and my program is working under Linux.

If I check the result of the command

du -sb file_path

I see that its size increases almost every second.

But I cannot read it and print the lines so fast.
I see that the program make a pause of 7 - 15 seconds, than prints more newly added lines, then make another pause, and so on.

I have disabled buffering at the top of my program using

$| = 1;

I have also tried using a combination of sysopen, sysseek for doing this, but I see that it still makes big pauses.

Is there a way of doing what I want, or it cannot be done in perl, or because the file is on another computer?

Thank you.

Octavian


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to