Ezra Taylor wrote:
Is there something similar to /dev/null on Windows?
NUL:
TJG
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 30 Sep 2008 19:30:55 + (UTC), Lie Ryan <[EMAIL PROTECTED]> wrote:
On Tue, 30 Sep 2008 15:09:06 -0400, Ezra Taylor wrote:
Is there something similar to /dev/null on Windows?
I think it's called nul
REM This is a batch file (.bat)
echo "This won't show" > NUL
I'm not sure how to
On Tue, 30 Sep 2008 15:09:06 -0400, Ezra Taylor wrote:
> Is there something similar to /dev/null on Windows?
I think it's called nul
REM This is a batch file (.bat)
echo "This won't show" > NUL
I'm not sure how to use it in python though.
--
http://mail.python.org/mailman/listinfo/python-list
Is there something similar to /dev/null on Windows?
On Tue, Sep 30, 2008 at 2:13 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote:
> Joseph:
> Check out subprocess. The subprocess module is on python
> 2.4. Also, use subprocess.call("your command",shell=True)
>
> On Linux/Unix, the process
Joseph:
Check out subprocess. The subprocess module is on python
2.4. Also, use subprocess.call("your command",shell=True)
On Linux/Unix, the process is below
import subprocess
ret =
subprocess.call("dir",shell=True,stdout=open('/dev/null','w'),stderr=subprocess.STDOUT)
print re