I believe CFEXECUTE will spawn the job and not wait for it to finish
before returning control to the template. Which, in this case, is exactly
what you want.

You could then run cfml.exe at the command line to process the CF template
you need run... (ie. c:\cfusion\bin\cfml.exe c:\web\longtemplate.cfm)

> Is there a way to run a Cold Fusion page not through a browser, but spawned
> from a browser... confused.. imagine this...
> 
> I want to give my user a button to click on a web page that runs a very
> lengthy process, say exporting the entire database to a CSV file, but I dont
> want to do the processing in a browser window, because if my user closes
> that window halfway through, it might cancel the processing. Is there a way
> to get the server processing something but not relying on a browser window
> for it?
> 
> One way I can think of is to set up a one off CFSCHEDULE command to execute
> a page in 5 seconds time, which then removes itself from the schedule, but
> that seems a little messy.. any better way?
> 
> -----------------------
> Ryan Sabir
> Newgency Pty Ltd
> 2a Broughton St
> Paddington 2021
> Sydney, Australia
> Ph (02) 9331 2133
> Fax (02) 9331 5199
> Mobile: 0411 512 454
> http://www.newgency.com/index.cfm?referer=rysig
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to