Re: Problem using commands.getoutput()

2009-12-08 Thread J
On Tue, Dec 8, 2009 at 14:44, Jerry Hill wrote: > At the very top of http://docs.python.org/library/commands.html it > says "Platforms: Unix", so yes, it's Unix-only. That sound you hear is me beating my head against the table now... sigh... I was too wrapped up in reading the actual code to not

Re: Problem using commands.getoutput()

2009-12-08 Thread Jerry Hill
On Tue, Dec 8, 2009 at 2:31 PM, J wrote: > > So what's the point of the commands module, or is that one that only > works in Linux, and not Windows? At the very top of http://docs.python.org/library/commands.html it says "Platforms: Unix", so yes, it's Unix-only. > I can do what I want, I think,

Problem using commands.getoutput()

2009-12-08 Thread J
Reading up on ways to run commands in a shell and capture output... So I was looking at os.exec*() and that's not the correct thing here. If I understand the docs correctly, the os.exec*() functions actually end the calling program and replace it with the program called by os.exec*() even as far a