Re: Return a value while continuing
Re: Return a value while continuing
- Subject: Re: Return a value while continuing
- From: email@hidden
- Date: Thu, 1 Mar 2001 22:04:19 EST
In a message dated 3/1/01 12:18:21 PM, Simon Forster wrote:
>
I've written a simple cgi which is rapidly becoming a bit of a monster. Part
>
of the feature creep I'm introducing is that it'd be neat to return a value
>
to the web server fairly promptly while continuing with some further
>
processing behind the scenes.
>
>
So, I have my handler which accepts arguments from the web server. Quick bit
>
of error checking and then I'd like to return a header while the script
>
quietly completes the task in its own time.
>
>
Problem: As soon as you hit a "return xxx" statement, the script stops.
>
>
The only way I can see around this is to have a second script application to
>
which I pass some arguments. Using "ignoring application responses" I should
>
be able to return a value to the web server while the helper app gets on
>
with processing the request. However, this doesn't seem very elegant and I
>
could run into trouble if the helper app got split from the handler app.
>
>
How does one deal with this?
One deals with this with dogged determination, hours of Internet research,
trial and error, expenditure of $$, asking on other lists, pulling one's hair
out, and finding creative workarounds.
Or one checks out the helpful web page created by the person who already did
all those things.
http://www2.linkedresources.com/teach/applescript/sendpartial.html
HTH!
Jeff Baumann
email@hidden
www.linkedresources.com
15 Days, 17 Hours, 7 Minutes
How is it going to end?