can I use this module to store output to a python variable? I am looking for something similar to commands.getoutput("<cmd>")
On Wed, Dec 2, 2009 at 11:42 AM, Chris Rebert <c...@rebertia.com> wrote: > On Tue, Dec 1, 2009 at 10:05 PM, M Kumar <tomanis...@gmail.com> 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 facilities for spawning > new processes and retrieving their results. > Using the subprocess module is preferable to using the commands module." > > Cheers, > Chris > -- > http://blog.rebertia.com > -- thanks & regards, Maneesh KB Sent from Delhi, DL, India
-- http://mail.python.org/mailman/listinfo/python-list