Bad spawn! Finish your work!

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40451
interpreted = N
texte = Got a tricky [spawn] that doesn't want to finish his work... The following code works as expected by sending an e-mail to me that it's begun to do it's work (message to start). Then it goes through a number of loops and the number of loops is fine. The searching and e-mail of messages is fine. The [waitforfile...] is fine. But... I never get the last message delivered after the [/loop]. Could the spawn be terminating its instance before the [sendmail] context is complete? Do I have a silly typo somewhere? Should [spawn] be sent to its room for not finishing its vegetables?thoughts? --joe[spawn] [search db=addresslist.db&netheAddressdata=find-all] [math show=f]loops=ceil([numfound]/[mymax])[/math] [/search][!] message to start [/!] [sendmail to=joedan@west21.com&from=joedan@west21.com&subject=I will do [loops] loops] [/sendmail][loop start=1&end=[loops]&advance=1] [sendmail to=joedan@west21.com&from=joedan@west21.com&subject=[time] Loop# [index] has begun. mymax=[mymax] mystart=[mystart]] [/sendmail][search db=addresslist.db&neTHEADDRESSdata=find_all&asMAILFLAGsort=1&MAILFLAGt ype=num&startat=[mystart]&max=[mymax]][founditems] [sendmail to=[theAddress]&from=[siteemail]&subject=[mailSubject]] [convertchars][mailMessage][/convertchars] [/sendmail] [/founditems] [/search][math show=f]myStart=myStart+mymax[/math][WaitForFile file=noway.txt&timeout=[mydelay]] [/loop][!] message to end [/!] [sendmail to=joedan@west21.com&from=joedan@west21.com&subject=ALL DONE!] [/sendmail][/spawn]------------------------------------------------------------- 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: Bad spawn! Finish your work! (Joseph D'Andrea 2002)
  2. Re: Bad spawn! Finish your work! (Donovan 2002)
  3. Re: Bad spawn! Finish your work! (Joseph D'Andrea 2002)
  4. Re: Bad spawn! Finish your work! (Sam Lewis 2002)
  5. Re: Bad spawn! Finish your work! (Donovan 2002)
  6. Bad spawn! Finish your work! (Joseph D'Andrea 2002)
Got a tricky [spawn] that doesn't want to finish his work... The following code works as expected by sending an e-mail to me that it's begun to do it's work (message to start). Then it goes through a number of loops and the number of loops is fine. The searching and e-mail of messages is fine. The [waitforfile...] is fine. But... I never get the last message delivered after the [/loop]. Could the spawn be terminating its instance before the [sendmail] context is complete? Do I have a silly typo somewhere? Should [spawn] be sent to its room for not finishing its vegetables?thoughts? --joe[spawn] [search db=addresslist.db&netheAddressdata=find-all] [math show=f]loops=ceil([numfound]/[mymax])[/math] [/search][!] message to start [/!] [sendmail to=joedan@west21.com&from=joedan@west21.com&subject=I will do [loops] loops] [/sendmail][loop start=1&end=[loops]&advance=1] [sendmail to=joedan@west21.com&from=joedan@west21.com&subject=[time] Loop# [index] has begun. mymax=[mymax] mystart=[mystart]] [/sendmail][search db=addresslist.db&neTHEADDRESSdata=find_all&asMAILFLAGsort=1&MAILFLAGt ype=num&startat=[mystart]&max=[mymax]][founditems] [sendmail to=[theAddress]&from=[siteemail]&subject=[mailSubject]] [convertchars][mailMessage][/convertchars] [/sendmail] [/founditems] [/search][math show=f]myStart=myStart+mymax[/math][WaitForFile file=noway.txt&timeout=[mydelay]] [/loop][!] message to end [/!] [sendmail to=joedan@west21.com&from=joedan@west21.com&subject=ALL DONE!] [/sendmail][/spawn]------------------------------------------------------------- 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/ Joseph D'Andrea

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:

Server crash (1997) Add - optional parameters textA=.... (1997) [replaceChars] would be nice ... (1997) # fields limited? (1997) Exclude by date - multiple (1997) Help formatting search results w/ table (1997) Almost a there but..bye bye NetCloak (1997) WebMerchant 1.6 and https (1997) Re(2): Re(4): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) Payments -> Bank Accounts (2005) change the number format (1997) WebCat2.0 [format thousands .0f] no go (1997) DNS Lookup 2 (2000) Lookup command (1998) turning every 5th line red (1999) Convertchars Problem (2004) Answer: WebDelivery downloads alias, not original ? (1997) oops private message leaked into talk list (1997) WebCat B13 Mac CGI -- Frames question (1997) Force a search at the default.tmpl page? (1997)