Pages

Tuesday, May 3, 2011

Python - Pipe

>> import os
>> cmd = "dir"
>> fp = popen(cmd)
>> print fp.read()
>> fp.close()

No comments:

Post a Comment