Hi,


How can I run an OS command and have the command's output (to stdout) in my 
string variable?



For example in windows, this command should return a list of files within 
directory:



os.system("DIR")



I am looking for an alternative function that returns the DIR command output 
in a string



Thanks,

Alan


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to