Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 wandering the Monastery: (9)
As of 2014-10-02 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls