Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-09-16 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (157 votes), past polls