[Chicago] multiprocessing

Carl Karsten carl at personnelware.com
Fri Aug 9 18:11:08 CEST 2013


well, you run it like any other python program:

python dvs-mon.py

Not sure running it will help, you will need python-wxgtk2.8

It runs shell commands in subprocesses and redirects stdout and stderr
into wx text boxes.  I would just look at the code that deals with
that.



On Fri, Aug 9, 2013 at 6:34 AM, Oren Livne <livne at uchicago.edu> wrote:
> Dear Carl,
>
> Thanks so much! I was not sure hwo to run this program. Is this a standalone
> server that runs in the background? At any rate, I've been killing them
> manually for now. :)
>
> Oren
>
>
> On 8/8/2013 10:07 AM, Carl Karsten wrote:
>>
>> This sounds like a problem I had that a friend fixed, and I never
>> really bothered to look at what he did, it just worked so I merged his
>> code.
>>
>> https://github.com/CarlFK/dvsmon/blob/master/dvs-mon.py
>>
>> Feel free to ask questions about it, cuz maybe someone else can answer ;)
>>
>> On Thu, Aug 8, 2013 at 9:18 AM, Oren Livne <livne at uchicago.edu> wrote:
>>>
>>> Dear All,
>>>
>>> - If I spawn a multiprocessed python program and need to kill it in the
>>> middle of the run, how can I get rid of all the child python processes it
>>> spawns? They don't die when I kill the manager process. To
>>> - If I print (with a lock) from within a process' function to stdout and
>>> flush stdout, I still don't see the printout until after the run
>>> completes.
>>> How can I see process printouts in real time?
>>>
>>> Thanks
>>> Oren
>>>
>>> --
>>> A person is just about as big as the things that make him angry.
>>>
>>> _______________________________________________
>>> Chicago mailing list
>>> Chicago at python.org
>>> http://mail.python.org/mailman/listinfo/chicago
>>
>>
>>
>
>
> --
> A person is just about as big as the things that make him angry.
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago



-- 
Carl K


More information about the Chicago mailing list