python and command shell on Windows

josu josujugo at gmail.com
Wed Dec 16 12:58:23 EST 2009


Hi

I am trying to execute a windows command based on a shell by mean of
python. I have proven subprocess

test=subprocess.Popen
(['shell_command'],shell=True,stdin=PIPE,stdout=PIPE)

Initally, all seems ok, but, after seconds the python shell is frozen.

Does someone know alternative ways valid for windows OS?

Thanks in advance

josu



More information about the Python-list mailing list