Re: python3: help with subprocess

2010-07-14 Thread Dave Angel
Alan wrote: Hi there, Module commands is gone in python3, so I am trying subprocess. So please I would appreciate if someone can tell me how to do this better: before I had: cmd = 'uname -a' out = commands.getoutput(cmd) 'Darwin amadeus.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18

Re: python3: help with subprocess

2010-07-14 Thread Gary Herron
On 07/14/2010 08:38 AM, Alan wrote: Hi there, Module commands is gone in python3, so I am trying subprocess. So please I would appreciate if someone can tell me how to do this better: before I had: cmd = 'uname -a' out = commands.getoutput(cmd) 'Darwin amadeus.local 10.4.0 Darwin Kernel Ver

Re: python3: help with subprocess

2010-07-14 Thread Ben Kaplan
On Jul 14, 2010, at 8:38 AM, Alan wrote: > Hi there, > > Module commands is gone in python3, so I am trying subprocess. So please I > would appreciate if someone can tell me how to do this better: > > before I had: > > cmd = 'uname -a' > out = commands.getoutput(cmd) > > 'Darwin amadeus.loca

python3: help with subprocess

2010-07-14 Thread Alan
Hi there, Module commands is gone in python3, so I am trying subprocess. So please I would appreciate if someone can tell me how to do this better: before I had: cmd = 'uname -a' out = commands.getoutput(cmd) 'Darwin amadeus.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 201