Hello all
Anyone ever done a background process in XSP? I want to display a
progress update or something while my user is waiting for their form
data to be processed. - e.g. I have a button that generates a gzipped
HTML rendering of my website for uploading to a non AxKit server. How
would I know that my background process has finished and what the
results were?
One approach is to fork-exec and put the PID of the forked process into
the session object. The XSP page could then have a refresh meta tag set
to a few seconds and check the PID each time it loads until the process
is finished. It could also check a log file or tmp filename based on
the PID of the forked process.
In another approach, the forked process could somehow get hold of the
session object and put the results there as well as indicating that it
has not finished yet - maybe use a watchdog counter to detect if it crashed.
Perhaps there are more elegant ways?
any comments / examples / success stories on similar processes?
matt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: XSP and background processing Matthew Smith
- Re: XSP and background processing J�rg Walter
- Re: XSP and background processing Tod Harter
