Redirect output on script
python at mrabarnett.plus.com
Thu Sep 17 13:52:51 CEST 2009
glenn.pringle at gmail.com wrote:
> I would like to redirect the output of the command below to another
> type test.txt > test.bak
> I'm trying to do this as part of a python script running on Windows
> I'm using os.system('type "filepath.txt > filepath.bak"') but nothing
> is happening.
os.system('type "filepath.txt" > "filepath.bak"')
os.system('type filepath.txt > filepath.bak')
> I was wondering if somebody could enlighten me.
More information about the Python-list