ouput redirection..a newbie question
Gautam Pagedar
gautam at cins.unipune.ernet.in
Mon Dec 15 05:08:50 EST 2003
Hello,
i am new to python and need a basic answer. Hope someone would help me
solve this.
I want to execute a command ls -l and sore its result in a file.
>>import sys
>>import os
>>os.system("ls -al")
executes the command how can i redirect the to a file like we do in
shell script using a redirection operator.
Waiting for reply.
Regards,
Gautam Pagedar.
More information about the Python-list
mailing list