Re: Forking a new process

2006-04-28 Thread spacedman
I did something like this in perl using HTML::Mason. However I used 'system' to start the background process, and files for communication... Its an on-demand backup system. The HTML::Mason code creates a temp file and then uses 'system' to run the backup job, passing the filename. The backup then

Re: Forking a new process

2006-04-28 Thread tomass
You know, I actually tried JobControl, and it looked like it was going to do exactly what I was after, but it seemed to be created extra processes that weren't being terminated correctly (for each "job" I kicked off, there were 2 extra apache processes). In the end I went with the idea of an indep

Re: Forking a new process

2006-04-25 Thread Steven Armstrong
On 04/25/06 13:56, tomass wrote: > Hi Folks, > > I'm trying to fork a new process using os.fork(), and everything seems > to be working well, except that I need to then reference django models > from the forked process. This seems to mean I need to reimport all the > relevant modules into the fun

Re: Forking a new process

2006-04-25 Thread Eric Walstad
On Tuesday 25 April 2006 06:52, tomass wrote: > Well, basically I have processes that could take minutes to > execute, and I'd like to background them, serve up a page showing > the status, and then allow users to view the output once they've > completed. > > Thanks, Tom mod_python has/had a meth

Re: Forking a new process

2006-04-25 Thread Michael Radziej
tomass wrote: > Well, basically I have processes that could take minutes to execute, > and I'd like to background them, serve up a page showing the status, > and then allow users to view the output once they've completed. Hmm. I don't know what it takes to get a clean independent fork so that no

Re: Forking a new process

2006-04-25 Thread tomass
Well, basically I have processes that could take minutes to execute, and I'd like to background them, serve up a page showing the status, and then allow users to view the output once they've completed. Thanks, Tom --~--~-~--~~~---~--~~ You received this message b

Re: Forking a new process

2006-04-25 Thread Michael Radziej
tomass wrote: > Hi Folks, > > I'm trying to fork a new process using os.fork(), and everything seems > to be working well, except that I need to then reference django models > from the forked process. This seems to mean I need to reimport all the > relevant modules into the function that's runnin

Forking a new process

2006-04-25 Thread tomass
Hi Folks, I'm trying to fork a new process using os.fork(), and everything seems to be working well, except that I need to then reference django models from the forked process. This seems to mean I need to reimport all the relevant modules into the function that's running as a forked process, and