[ danbala software ] dirck's
python
pages

  • Having trouble with stdin/stdout redirection on Win32?

    WinNT4 cmd.exe has a bug that doesn't like this:

            script.py < input.txt > t.log
    

    It requires this instead:

            python script.py < input.txt > t.log
    

    If this bugs you, the script cmdfix.py will help you to do this:

            script.py @input.txt !t.log
    
    ...and if you set PATHEXT to include .py you can do this:
            script @input.txt !t.log