Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 scrutinizing the Monastery: (4)
As of 2015-07-05 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls