Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Watching Creation File and send it to Server

by clemburg (Curate)
on Nov 06, 2001 at 19:56 UTC ( [id://123597]=note: print w/replies, xml ) Need Help??


in reply to Watching Creation File and send it to Server

Case 1: You can control the application that writes the file:

  • Make the application output another "signal" file with size 0 (like "touch signal-file" under Unix) when processing of the file to be written has completed.
  • Make the monitoring code react to the signal file instead of the original written file.

Case 2: You can not control the application that writes the file:

  • Have the monitoring code start another script that cyclically checks if the size of the file has changed (e.g., every 10 seconds).
  • If the file size has not changed since the last check, send the file to the Server.

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com

  • Comment on Re: Watching Creation File and send it to Server

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2025-07-07 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.