why does this code Hangs??!!!
I am on Windows
from subprocess import *
proc = Popen("cmd",stdin=PIPE,stdout=PIPE)
pin = proc.stdout
pin.read()
<HANGS JUST RIGHT HERE>
If I am right, you are opening a pipe and not closing it causes your stop. You need stdout, so grab it and then find the function opposite to Popen (in C for example you have proc = _popen and _pclose(proc)). I don'tknow the subprocess module, but I think this is your problem ... In C you may also get a limited buffer for the stdout and may need to make several reads through it ...read the function description for your module better
Good luck
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.