I\'m using a script that someone else wrote in python. It\'s executed from the command line with 3 arguments.
example: \"python script.py 1111 2222 3333\"
It do
Redirection works fine both in unix-y shells and in Windows' cmd.exe
(which I suspect is what you're calling "the DOS window"... unless you're managing to run Python on Windows '95 or something!-).
$ python script.py 1111 2222 3333 >output.txt
where the $
is not something you type, but rather stands for "whatever prompt your shell / command window is giving you". Just to be totally unambiguous, what you do type at said prompt to get redirection is just:
python script.py 1111 2222 3333 >output.txt
just like what you type now (without redirection) is
python script.py 1111 2222 3333