Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Extract new lines from log file

by pileofrogs (Priest)
on Jan 02, 2007 at 23:17 UTC ( [id://592664]=note: print w/replies, xml ) Need Help??


in reply to Extract new lines from log file

First, using the file size, as recommended above probably just solves your problem, so I'm just muttering academically here...

It sounds like you've got the remote files mounted on a network drive of some kind, right? Depending on the file system and weather or not it caches, your script might actually be downloading the entire file every time it reads it.

It might be easier to copy the file to a local partition and then process it.

-Pileofrogs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found