Re: commands module for windows

2009-12-01 Thread M Kumar
thank you very much Chris :) On Wed, Dec 2, 2009 at 12:10 PM, Chris Rebert wrote: > > On Wed, Dec 2, 2009 at 11:42 AM, Chris Rebert wrote: > >> On Tue, Dec 1, 2009 at 10:05 PM, M Kumar wrote: > >> > Is there any python module for windows which is equivalent to commands > >> > module in linux?

Re: commands module for windows

2009-12-01 Thread Chris Rebert
> On Wed, Dec 2, 2009 at 11:42 AM, Chris Rebert wrote: >> On Tue, Dec 1, 2009 at 10:05 PM, M Kumar wrote: >> > Is there any python module for windows which is equivalent to commands >> > module in linux? >> >> `subprocess` should work: http://docs.python.org/library/subprocess.html >> >> The `com

Re: commands module for windows

2009-12-01 Thread M Kumar
can I use this module to store output to a python variable? I am looking for something similar to commands.getoutput("") On Wed, Dec 2, 2009 at 11:42 AM, Chris Rebert wrote: > On Tue, Dec 1, 2009 at 10:05 PM, M Kumar wrote: > > Is there any python module for windows which is equivalent to comma

Re: commands module for windows

2009-12-01 Thread Chris Rebert
On Tue, Dec 1, 2009 at 10:05 PM, M Kumar wrote: > Is there any python module for windows which is equivalent to commands > module in linux? `subprocess` should work: http://docs.python.org/library/subprocess.html The `commands` docs even say: "The subprocess module provides more powerful facilit

commands module for windows

2009-12-01 Thread M Kumar
Dear all, Is there any python module for windows which is equivalent to commands module in linux? -- thanks & regards, Maneesh KB -- http://mail.python.org/mailman/listinfo/python-list