Re: Starting a child process and getting its stdout?

2006-12-30 Thread cypher543
Yes, I did try your example. But, after talking on the #python IRC channel, I realized that it wasn't the process that was blocking, it was my GUI. I had to fire an event using gobject.io_add_watch() whenever data was received from the child process. The event then read from the process and added a

Re: Managing a queue of subprocesses?

2006-12-30 Thread cypher543
wrong. ;) Also, how exactly would I redirect stderr to another place? On Dec 30, 12:22 am, Tom Plunket <[EMAIL PROTECTED]> wrote: > cypher543 wrote: > > self.buildPID = subprocess.Popen(buildCmd, stdout = subprocess.PIPE, stderr > > = subprocess.STDOUT)Instead of calling it sel

Managing a queue of subprocesses?

2006-12-29 Thread cypher543
My app uses a "queue" of commands which are run one at a time. I am using the subprocess module to execute the commands in the queue. However, processes always run at the same time. How can I make one process run at a time, and then execute the next process when the first has terminated? My code is

Re: Starting a child process and getting its stdout?

2006-12-29 Thread cypher543
Thank you for the examples, but I have tried all of that before. No matter what I do, my program always hangs while it waits for the process to exit and then it prints all of the output at once. I've tried read(), readline(), readlines(), communicate(), etc and it is always the same. self.buildPID

Starting a child process and getting its stdout?

2006-12-28 Thread cypher543
This has been driving me insane for the last hour or so. I have search everywhere, and nothing works. I am trying to use the subprocess module to run a program and get its output line by line. But, it always waits for the process to terminate and then return the output all at once. Can someone ple

(PyGTK) Disabling ToolButton when no TreeView item is selected?

2006-12-28 Thread cypher543
I have a TreeView and a ToolButton. The ToolButton should only be active if the user has selected an item in the TreeView. What signal should I use to achieve this? Thanks, David -- http://mail.python.org/mailman/listinfo/python-list