Redirect output on script

glenn.pringle at gmail.com glenn.pringle at gmail.com
Thu Sep 17 12:58:06 CEST 2009


I would like to redirect the output of the command below to another
file
type test.txt > test.bak

I'm trying to do this as part of a python script running on Windows
XP.

I'm using os.system('type "filepath.txt > filepath.bak"') but nothing
is happening.

I was wondering if somebody could enlighten me.



Thanks,


Glenn Pringle



More information about the Python-list mailing list