Re: Waitfor file

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30572
interpreted = N
texte = Turns out that webcatalog pauses at that point in the page until a waitforfile is complete.ie [waitforfile][/waitforfile] something1 [waitforfile][/waitforfile] something2 [waitforfile][/waitforfile] something3assuming a 5 minute timeout on a file that will never exist will take 15 minutes to execute. I've now spawned the whole thing.The reason I'm doing what I'm doing it there are 30 applescripts, and using triggers, i'd have to have 30 separate little files getting hit to execute each applescript independently.When I'm done, I'll post what I've made, It's a Mac based (I'll leave it as an exercise to the reader to convert to PC/linux...) config/scheduling system to run the Analog Log Stats program on a multi-homed server. Brian B. Burton BOFH - Department of Redundancy Department --------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.com ================================= time is precious. waste it wisely =================================> I had assumed that the rest does not execute, but now that you ask > explicitly like that > I realize I don't know... > (kind of a useless post huh?) > Maybe you can make some kind of test to find out - like with using > [ELAPSEDTIME] (put > one at the top and one at the bottom and see if the difference reflects the > [waitforfile]) > > -John > > Brian B. Burton wrote: > >> > [WaitForFile file=nada_amigo.txt&timeout=60][/WaitForFile] >> > >> > where you know that nada_amigo.txt will never appear. Set timeout to the >> > delay you need >> >> Ok, here's today's exciting question, does Webcatalog continue to process >> the rest of the page while waiting for a file (In effect, causing the >> waitforfile to become a spawned command), or does it stop at that line and >> stop the rest of the page for at each occurrence. >> >> The reason I ask Is I have several applescripts I want to put on one page, >> and I want to have them execute 5 minutes after each other. (call it a poor >> man's cron if you will. But I can't use the triggers.db for this >> application. >> >> Thanks! >> >> Brian B. Burton------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list with address <^A>. To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Waitfor file (John Butler 2000)
  2. Re: Waitfor file (Brian B. Burton 2000)
  3. Re: Waitfor file (WebDNA Support 2000)
  4. Re: Waitfor file (Paul Fowler 2000)
  5. Re: Waitfor file (Brian B. Burton 2000)
  6. Re: Waitfor file (Peter Ostry 2000)
  7. Re: Waitfor file (John Butler 2000)
  8. Re: Waitfor file (Peter Ostry 2000)
  9. Re: Waitfor file (WebDNA Support 2000)
  10. Waitfor file (Michael O Shea 2000)
Turns out that webcatalog pauses at that point in the page until a waitforfile is complete.ie [waitforfile][/waitforfile] something1 [waitforfile][/waitforfile] something2 [waitforfile][/waitforfile] something3assuming a 5 minute timeout on a file that will never exist will take 15 minutes to execute. I've now spawned the whole thing.The reason I'm doing what I'm doing it there are 30 applescripts, and using triggers, i'd have to have 30 separate little files getting hit to execute each applescript independently.When I'm done, I'll post what I've made, It's a Mac based (I'll leave it as an exercise to the reader to convert to PC/linux...) config/scheduling system to run the Analog Log Stats program on a multi-homed server. Brian B. Burton BOFH - Department of Redundancy Department --------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.com ================================= time is precious. waste it wisely =================================> I had assumed that the rest does not execute, but now that you ask > explicitly like that > I realize I don't know... > (kind of a useless post huh?) > Maybe you can make some kind of test to find out - like with using > [elapsedtime] (put > one at the top and one at the bottom and see if the difference reflects the > [waitforfile]) > > -John > > Brian B. Burton wrote: > >> > [WaitForFile file=nada_amigo.txt&timeout=60][/WaitForFile] >> > >> > where you know that nada_amigo.txt will never appear. Set timeout to the >> > delay you need >> >> Ok, here's today's exciting question, does Webcatalog continue to process >> the rest of the page while waiting for a file (In effect, causing the >> waitforfile to become a spawned command), or does it stop at that line and >> stop the rest of the page for at each occurrence. >> >> The reason I ask Is I have several applescripts I want to put on one page, >> and I want to have them execute 5 minutes after each other. (call it a poor >> man's cron if you will. But I can't use the triggers.db for this >> application. >> >> Thanks! >> >> Brian B. Burton------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list with address <^A>. To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Brian B. Burton

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:

Problems with webcat 2.01 for NT (1997) Max Record length restated as maybe bug (1997) web delivery (1997) Using [Showif] tag. Mac (1997) lookup and two records? (1997) Multiple Ad databases? (1997) Limit on nested [ShowIf]'s? (1997) Find one not all, code not working (2003) Enhancement Request for WebCatalog-NT (1996) If Empty ? (1997) [WebDNA] Help with work-around format date (2013) Showif, Hideif reverse logic ? (1997) Featured Site (Again) (2000) XML version of WebDNA docs? (2000) Plugin or CGI or both (1997) Robert Minor duplicate mail (1997) Sorting when searching with grouped fields (2002) A new bug? (1999) Document Contains No Data! (1997) Help name our technology! (1997)