Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Tailing a log file using seek/tell

by rinceWind (Monsignor)
on Mar 17, 2007 at 13:31 UTC ( #605276=note: print w/replies, xml ) Need Help??


in reply to Tailing a log file using seek/tell

On some operating systems, you need to actually close and reopen the file in order for it to see that the EOF has moved. You can use stat while the file is closed, to see whether the file has grown, hence whether it's worth opening it and reading the next chunk.

Hope ths helps.

--
Apprentice wetware hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://605276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-01-24 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?