---------- Forwarded message ---------- From: Cameron Simpson <[email protected]> Date: Mon, Mar 12, 2012 at 1:04 AM Subject: Re: Launching A Truly Disjoint Process To: Dave Angel <[email protected]> Cc: Ami Tavory <[email protected]>, [email protected]
On 11Mar2012 17:34, Dave Angel <[email protected]> wrote: | On 03/11/2012 05:01 PM, Ami Tavory wrote: | > I'm encountering a problem using the multiprocessing module to create a | > process that is truly disjoint from the parent process:... | Why not try using bash as an intermediate executable? Have your first | python process invoke bash, giving it the arguments to in turn launch | the second python process. Why use bash at all? That requires painful and inefficient argument quoting, etc. Just invoke Python itself directly i.e. get subprocess to fork/exec (aka spawn) a new invocation of Python instead of using execfile. Dave, Cameron, Many thanks. I ran some initial tests regarding your suggestions, and things look good.
-- http://mail.python.org/mailman/listinfo/python-list
