Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

python and command shell on Windows

1 view
Skip to first unread message

josu

unread,
Dec 16, 2009, 12:58:23 PM12/16/09
to
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

Eric_...@msn.com

unread,
Dec 16, 2009, 3:52:58 PM12/16/09
to
os.startfile() works you will find the pipe commands are different on
unix and windows anyway.
0 new messages