Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Watching Creation File and send it to Server

by clemburg (Curate)
on Nov 06, 2001 at 19:56 UTC ( #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
Node Status?
node history
Node Type: note [id://123597]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-11-29 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls