[WaitForFile] wait for open file, not closed file
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38882
interpreted = N
texte = 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 isactivated as soon as the file is created and yet opened, so not ready to bemoved.If the time to write the file is long, the [waitForFile] context isactivated, even if the writing of the file is not yet finished.If you place a [movefile] context inside the [waitforfile] context withslow files you will a have a 0 kbyte moved file.So maybe it is possible to test with the [fileinfo] context if the [size] ofthe 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 nulland 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 thesame : the [waitforfile] context is activated as soon as the file begin toexist on the disc.Please help.Thank you.Ed.-------------------------------------------------------------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:
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 isactivated as soon as the file is created and yet opened, so not ready to bemoved.If the time to write the file is long, the [waitforfile] context isactivated, even if the writing of the file is not yet finished.If you place a [movefile] context inside the [waitforfile] context withslow files you will a have a 0 kbyte moved file.So maybe it is possible to test with the [fileinfo] context if the [size] ofthe 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 nulland 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 thesame : the [waitforfile] context is activated as soon as the file begin toexist on the disc.Please help.Thank you.Ed.-------------------------------------------------------------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/
Edouard Janssens [Microscript]
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:
WebMerchant Process Orders errors (2000)
using showpage and showcart commands (1996)
Question re: FlushDatabases (1997)
More on the email templates (1997)
Multiple catalog databases and showcart (1997)
Random Links (2004)
WebCat Error Log problem (2.0.1, acgi, Mac) (1997)
Running _every_ page through WebCat ? (1997)
Permission denied? (2004)
same products but different (1998)
AOL and [referrer] (2001)
(1997)
SOLVED: [WebDNA] [lookup..] returning nothing at all.. not even the notfound param. (2010)
RE: Help name our technology! (1997)
Multi Actions (1999)
Error: Too many nested [xxx] contexts (1997)
Requiring that certain fields be completed (1997)
[WebDNA] Search comparisons in 8.6.1 (2019)
Odd search results, or odd programmer, not sure which... (2002)
[WebDNA] Duplicate emails (2008)