A question about subprocess

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Oct 4 10:55:27 CEST 2007


In message <4704a187$1$18927$4c368faf at roadrunner.com>, Carl Banks wrote:

> On Wed, 03 Oct 2007 16:46:20 +0000, JD wrote:
>> 
>> I want send my jobs over a whole bunch of machines (using ssh). The jobs
>> will need to be run in the following pattern:
>> 
>> (Machine A)   (Machine B)  (Machine C)
>> 
>> Job A1             Job B1            Job C1
>> 
>>  Job A2           Job B2            etc
>> 
>>  Job A3          etc
>> 
>>  etc
>> 
>> Jobs runing on machine A, B, C should be in parallel, however, for each
>> machine, jobs should run one after another.
>> 
>> How can I do it with the subprocess?
> 
> 
> It's not too hard if the remote jobs exit gracefully, so that ssh knows
> when the remote job is done.

It's hard to see how an _ungraceful_ exit could stop SSH from knowing when
the remote job is done.



More information about the Python-list mailing list