Re: A question about subprocess

2007-10-05 Thread JD
Thanks very much for all the answers. JD On Oct 3, 6:24 pm, Dan Stromberg <[EMAIL PROTECTED]> wrote: > You don't necessarily need thesubprocessmodule to do this, though you > could use it. > > I've done this sort of thing in the past with fork and exec. > > To serialize the jobs on the machines,

Re: A question about subprocess

2007-10-04 Thread Dan Stromberg
You don't necessarily need the subprocess module to do this, though you could use it. I've done this sort of thing in the past with fork and exec. To serialize the jobs on the machines, the easiest thing is to just send the commands all at once to a given machine, like "command1; command2; comma

Re: A question about subprocess

2007-10-04 Thread Carl Banks
On Oct 4, 4:55 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Carl Banks wrote: > > > > > On Wed, 03 Oct 2007 16:46:20 +, JD wrote: > > >> I want send my jobs over a whole bunch of machines (using ssh). The jobs > >> will need to be

Re: A question about subprocess

2007-10-04 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Carl Banks wrote: > On Wed, 03 Oct 2007 16:46:20 +, 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

Re: A question about subprocess

2007-10-04 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Lawrence D'Oliveiro wrote: > ... each one waiting for a remote process > on some master machine to terminate. Of course, "master" there should be "slave". :) -- http://mail.python.org/mailman/listinfo/python-list

Re: A question about subprocess

2007-10-04 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, 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 B1Job C1 > > Job A2 Job B2

Re: A question about subprocess

2007-10-03 Thread Karthik Gurusamy
On Oct 3, 9:46 am, JD <[EMAIL PROTECTED]> wrote: > Hi, > > 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 B1Job C1 > > Job A2 Job B2

Re: A question about subprocess

2007-10-03 Thread Lawrence Oluyede
JD <[EMAIL PROTECTED]> wrote: > How can I do it with the subprocess? You can't. Subprocess is a library to spawn new processes on the local machine. If you want to handle external machines you need something like parallel python: -- Lawrence, oluyede.org - nerope

A question about subprocess

2007-10-03 Thread JD
Hi, 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 B1Job C1 Job A2 Job B2etc Job A3 etc etc Jobs runing on machi