On Monday 02 July 2007 16:46, Daniel Fetchinson wrote: > Hi everybody, > > Given the fact that tg/cherrypy is a complicated multi-threaded beast > I'm not sure what the safest way is to launch a separate python > process upon receiving a request. I can't use the scheduler because > the process to be launched depends on the request. Is os.system good > enough? Or one needs popen/fork/etc? I'm being extra cautious because > with apache/mod_python it was a hell of a complicated thing to get > this right, the correct way depended on whether apache is running as > mpm or not, etc, and I don't know tg/cherrypy to this detail. > > Any ideas?
Use the subprocess module. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

