It is possible to "spawn" a task.

Use CFEXECUTE to start a new thread.  The code in that thread just goes
about it's business while the "calling" page can continue.

http://cfhub.com/forum//index.cfm?Fuseaction=Thread&TopicID=1037&start=1

It is also possible (and even better in some cases) to use CFHTTP to call
the "worker" file but set the timeout in the CFHTTP tag to like "one
second".  Now your calling page starts the remote script... then just
ignores it after the timeout.  The worker thread goes about it's business as
does your calling page.



> If not our first solution was to create a Perl script and execute it with
a
> <cfexecute> call.  The problem here is that I have to sit and wait for the
> job to finish before moving on and that can take awhile.  Is there a way
to
> "walk away" from a <cfexecute> without ending up with a bunch of defunct
> jobs on the server?
>


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to