![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveProblem redirecting stdin on Windows
From: aurora <aurora00@gmail.com>
Date: Thu May 26 2005 - 04:11:14 CEST
On Windows (XP) with win32 extension installed, a Python script can be
Assume there is an echo.py that read from stdin and echo the input.
Launching from command line directly, this echos input from keyboard:
echo.py
But it causes an error if the stdin is redirected
echo.py <textfile
...
However it works as expected if launched via Python.exe
c:\Python24\python.exe echo.py <textfile
Why is the second option fails? It makes many script lot less functional.
|