command.getoutput()

Peter Wu peterwu at hotmail.com
Wed Feb 26 21:49:51 EST 2003


Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import commands
>>> commands.getoutput('ver')
"'{' is not recognized as an internal or external command,\noperable program or batch file."
>>> commands.getoutput("ver")
"'{' is not recognized as an internal or external command,\noperable program or batch file."
>>> 


What's the problem here? Thanks.

-- 
Peter Wu




More information about the Python-list mailing list