getting from command line options to file

CSUIDL PROGRAMMEr syedamjad_a at yahoo.com
Mon Apr 16 14:32:52 EDT 2007


hi folks
I am new to python. I have a module does call a os.command(cmd) where
cmd is a rpm command.
Instead of using os.command and getting the results on command line ,
i would like to dump the output in a file. Is os.command(cmd >
filename)  the most efficient command??


thanks




More information about the Python-list mailing list