Re: [WaitForFile] wait for open file, not closed file

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38886
interpreted = N
texte = Do you have control over the process that is creating the file you are waiting for? Can you change it to write to a temporary name then rename to the final name when done? or to write an I'm done file that you can wait for instead?- brianAt 5:23 PM 9/25/2001, Edouard Janssens [Microscript] wrote: >I'm stuck with an very old problem : > >I want to move a file as soon as it is ready to be moved. >This means created AND closed. > >The [WaitforFile] context don't wait for the file to be closed but is >activated as soon as the file is created and yet opened, so not ready to be >moved. > >If the time to write the file is long, the [waitForFile] context is >activated, even if the writing of the file is not yet finished. > >If you place a [movefile] context inside the [waitforfile] context with >slow files you will a have a 0 kbyte moved file. > >So maybe it is possible to test with the [fileinfo] context if the [size] of >the file is null and then wait more time. > >I'm trying to have some kind of loop wich test if the file size is not null >and then escape the loop. > >But it doesn't seems to have a loop break if possibility in WebCat. > >This is really a VERY big problem for me. > >I tried a lot of solutions like rename or move but the problem is still the >same : the [waitforfile] context is activated as soon as the file begin to >exist on the disc. > >Please help. > >Thank you. >Ed. -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WaitForFile] wait for open file, not closed file (Edouard Janssens [Microscript] 2001)
  2. Re: [WaitForFile] wait for open file, not closed file (Christer Olsson 2001)
  3. Re: [WaitForFile] wait for open file, not closed file (Brian Fries 2001)
  4. [WaitForFile] wait for open file, not closed file (Edouard Janssens [Microscript] 2001)
Do you have control over the process that is creating the file you are waiting for? Can you change it to write to a temporary name then rename to the final name when done? or to write an I'm done file that you can wait for instead?- brianAt 5:23 PM 9/25/2001, Edouard Janssens [Microscript] wrote: >I'm stuck with an very old problem : > >I want to move a file as soon as it is ready to be moved. >This means created AND closed. > >The [waitforfile] context don't wait for the file to be closed but is >activated as soon as the file is created and yet opened, so not ready to be >moved. > >If the time to write the file is long, the [waitforfile] context is >activated, even if the writing of the file is not yet finished. > >If you place a [movefile] context inside the [waitforfile] context with >slow files you will a have a 0 kbyte moved file. > >So maybe it is possible to test with the [fileinfo] context if the [size] of >the file is null and then wait more time. > >I'm trying to have some kind of loop wich test if the file size is not null >and then escape the loop. > >But it doesn't seems to have a loop break if possibility in WebCat. > >This is really a VERY big problem for me. > >I tried a lot of solutions like rename or move but the problem is still the >same : the [waitforfile] context is activated as soon as the file begin to >exist on the disc. > >Please help. > >Thank you. >Ed. -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Brian Fries

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Math Problem - Format? (1997) StackOverflow, WAS: [WebDNA] get vs post problems (2011) Now you see it now you donīt (1997) RE: Missing contexts on NT (1997) All choices on IE different than Netscape (1997) problems with WebCat-Plugin (1997) Reversed words (1997) PCS Frames (1997) [SearchString] problem with [search] context (1997) Running subtotal? (1998) Cold Fusion Buster (1997) Configuring E-mail (1997) Have I lost my mind? uhmm... (2002) greater than or equal to (1997) SHOWIF/HIDEIF empty fields (2005) Webcatalog quitting (1997) Cart file not being written (2000) Emailer (1997) restarting service remotely on NT (1997) Some Questions (1997)