Re: multiple processes, private working directories

2008-09-26 Thread Michael Palmer
On Sep 25, 8:16 am, "Tim Arnold" <[EMAIL PROTECTED]> wrote: > "Tim Arnold" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >I have a bunch of processes to run and each one needs its own working > > directory. I'd also like to know when all of the processes are > > finished. > >

Re: multiple processes, private working directories

2008-09-25 Thread Tim Arnold
"Tim Arnold" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a bunch of processes to run and each one needs its own working > directory. I'd also like to know when all of the processes are > finished. Thanks for the ideas everyone--I now have some news tools in the toolbox. T

Re: multiple processes, private working directories

2008-09-24 Thread Carl Banks
On Sep 24, 9:27 pm, Tim Arnold <[EMAIL PROTECTED]> wrote: > (2) Next thought was fork, but I don't know how to signal when each > child is > finished. Consider the multiprocessing module, which is available in Python 2.6, but it began its life as a third-party module that acts like threading modul

Re: multiple processes, private working directories

2008-09-24 Thread Karthik Gurusamy
On Sep 24, 6:27 pm, Tim Arnold <[EMAIL PROTECTED]> wrote: > I have a bunch of processes to run and each one needs its own working > directory. I'd also like to know when all of the processes are > finished. > > (1) First thought was threads, until I saw that os.chdir was process- > global. > (2) Ne

Re: multiple processes, private working directories

2008-09-24 Thread Michael Palmer
On Sep 24, 9:27 pm, Tim Arnold <[EMAIL PROTECTED]> wrote: > I have a bunch of processes to run and each one needs its own working > directory. I'd also like to know when all of the processes are > finished. > > (1) First thought was threads, until I saw that os.chdir was process- > global. > (2) Ne

Re: multiple processes, private working directories

2008-09-24 Thread Cameron Simpson
On 24Sep2008 18:27, Tim Arnold <[EMAIL PROTECTED]> wrote: | I have a bunch of processes to run and each one needs its own working | directory. I'd also like to know when all of the processes are | finished. | | (1) First thought was threads, until I saw that os.chdir was process- | global. Yep. B

Re: multiple processes, private working directories

2008-09-24 Thread r0g
Tim Arnold wrote: > I have a bunch of processes to run and each one needs its own working > directory. I'd also like to know when all of the processes are > finished. > > (1) First thought was threads, until I saw that os.chdir was process- > global. > (2) Next thought was fork, but I don't know h

multiple processes, private working directories

2008-09-24 Thread Tim Arnold
I have a bunch of processes to run and each one needs its own working directory. I'd also like to know when all of the processes are finished. (1) First thought was threads, until I saw that os.chdir was process- global. (2) Next thought was fork, but I don't know how to signal when each child is