Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: File Watching in Windows

by SuicideJunkie (Vicar)
on Sep 11, 2007 at 13:52 UTC ( #638303=note: print w/replies, xml ) Need Help??


in reply to File Watching in Windows

How about attempting to open (for exclusive write) the file every N seconds? When the writer closes the file and releases their lock, the open will succeed, and then you can do the copy.

Replies are listed 'Best First'.
Re^2: File Watching in Windows
by MidLifeXis (Monsignor) on Sep 11, 2007 at 16:55 UTC

    Make certain that you open it in append mode, though, or you will overwrite the data you are trying to process.

    --MidLifeXis

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2023-09-28 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?