Re: python and command shell on Windows

2009-12-16 Thread eric_dex...@msn.com
On Dec 16, 11:58 am, josu  wrote:
> 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
os.startfile() works you will find the pipe commands are different on
unix and windows anyway.
-- 
http://mail.python.org/mailman/listinfo/python-list


python and command shell on Windows

2009-12-16 Thread josu
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
-- 
http://mail.python.org/mailman/listinfo/python-list