Re: spawning a process with subprocess

2007-11-27 Thread bhunter
Ove Svensson <[EMAIL PROTECTED]> wrote: > bhunter <[EMAIL PROTECTED]> writes: > > Hi, > > > I've used subprocess with 2.4 several times to execute a process, wait > > for it to finish, and then look at its output. Now I want to spawn > > the process separat

Re: spawning a process with subprocess

2007-11-26 Thread bhunter
On Nov 26, 3:05 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > bhunter schrieb: > > > > > On Nov 26, 1:50 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> bhunter schrieb: > > >>> Hi, > >>> I'

Re: spawning a process with subprocess

2007-11-26 Thread bhunter
On Nov 26, 1:50 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > bhunter schrieb: > > > > > Hi, > > > I've used subprocess with 2.4 several times to execute a process, wait > > for it to finish, and then look at its output. Now I want to s

Re: spawning a process with subprocess

2007-11-26 Thread bhunter
> > This is just the way I do it...as I said, there are probably some > other people in the group who will have other opinions. By the way, > your statement "I was hoping not to have to avoid that" means that you > hoped to use threading...which I think is contradictory to what you > meant. > > Mik

Re: spawning a process with subprocess

2007-11-26 Thread bhunter
> I've read that this sort of thing can be a pain. I'm sure someone will > post and have other views though. I have had some success using > Python's threading module though. There's a pretty good walkthrough > here (it uses wxPython in its example): > > http://wiki.wxpython.org/LongRunningTasks >

spawning a process with subprocess

2007-11-26 Thread bhunter
Hi, I've used subprocess with 2.4 several times to execute a process, wait for it to finish, and then look at its output. Now I want to spawn the process separately, later check to see if it's finished, and if it is look at its output. I may want to send a signal at some point to kill the proces