
August 25th, 2012, 09:41 AM
|
 |
Contributing User
|
|
|
|
The subprocess module is the "new supported python way"---yeah, os.popen is my favorite too.
or you could use
os.system('a_command > file')
with open('file','r') as cmdoutput: cmdoutput.readlines()
__________________
[code] Code tags[/code] are essential for python code!
|