Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: why is Camel saying you can safely <> a growing file?

by flexvault (Parson)
on Jan 04, 2013 at 13:03 UTC ( #1011625=note: print w/ replies, xml ) Need Help??


in reply to why is Camel saying you can safely <> a growing file?

Mark_Galeck,

The second or third script I wrote in Perl was to "POP before email". It's changed over the years, but is still running on 10+ machines. I could not get one script to run on all *nix versions until I used the 'tell' function to save the location of the last successful read. What the book doesn't mention is that if the log file is smaller than the saved 'tell' location, you should start at the beginning of the file.

Good Luck...Ed

"Well done is better than well said." - Benjamin Franklin


Comment on Re: why is Camel saying you can safely <> a growing file?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-08-20 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (106 votes), past polls