I found something interesting while working in idle.I have windows vista and
python2.5

if i do
import subprocess
proc
=subprocess.Popen('cmd.exe',stdin=subprocess.PIPE,stdout=subprocess.PIPE)
output = proc.communicate('dir\n')[0]
print repr(output)

This dosen't work in idle
while if it put it up in  a script and run it as

python script.py
then it works
Its strange?

Aditya
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to