On 10/7/07, jorma kala <[EMAIL PROTECTED]> wrote:
> from subprocess import *
>
> p1 = Popen(["dir"], stdout=PIPE)
> output = p1.communicate()[0]
>
>
> But I get a WindowsError : [Error 2] File Not Found
Tim answered your actual question, but why are you doing this in the
first place? The Py
jorma kala wrote:
> I get an error that I don't understand when using the subprocess module
> on Windows.
> I guess I'm missing out something very basic.
> For instance, to execute and capture the output of the ms-dos dir
> command, I tried the following:
>
> from subprocess import *
>
> p1 = P
Hi,
I get an error that I don't understand when using the subprocess module on
Windows.
I guess I'm missing out something very basic.
For instance, to execute and capture the output of the ms-dos dir command, I
tried the following:
from subprocess import *
p1 = Popen(["dir"], stdout=PIPE)
outp