You rock -- running it right now with a meta-refresh at the bottom of the page (and <CFFLUSH> at the top so i can watch the script process) Working like a charm :)
Thank you thank you On Sun, May 10, 2009 at 5:20 PM, Kym Kovan <dev-li...@mbcomms.net.au> wrote: > > Philip Kaplan wrote: > > Brilliant! A meta-refresh should work. > > What if I wanted to run it as a scheduled task? Hmm. > > A counter and flag in a database, run the script once every 10 mins or > whatever is appropriate and use the flag and counter to see if the next > section is due and which section. > > > > > On Sun, May 10, 2009 at 5:06 PM, Kym Kovan <dev-li...@mbcomms.net.au> > wrote: > > > >> Philip Kaplan wrote: > >>> I have a script that needs a few hours to run. It's crawling several > >> large > >>> web sites/xml feeds. > >>> > >>> What's the best way to do this with CF? I've tried adding > >>> "requestTimeout=1000000" in the URL but CF still seems to shut it down > >>> eventually. Also my browser window gives up eventually... > >> > >> If you can break up the script into discrete chunks then you can run > >> them sequentially from a master script that includes each chunk in turn > >> each time it is called. > >> > >> How do you intend to run the script, from a browser or from a scheduled > >> task? The master script will vary depending on which but from a browser > >> it just has to do a self-refresh after a few seconds as the meta-refresh > >> won't happen until the previous script is finished and the page fully > >> loads then. The script then starts into the next section. > >> > >> > >> > > -- > > Yours, > > Kym Kovan > mbcomms.net.au > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322358 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4