Re: how to use subprocess.Popen execute "find" in windows

2008-05-08 Thread clyfish
On 5月8日, 下午5时39分, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 07 May 2008 23:29:58 -0300, <[EMAIL PROTECTED]> escribió: > > > > > On 5月7日, 上午9时45分, Justin Ezequiel <[EMAIL PROTECTED]> > > wrote: > >> On May 6, 5:19 pm, [EMAIL PROTECTED] wrote: > > >> > p1 = Popen(['netstat', '-an'], st

Re: how to use subprocess.Popen execute "find" in windows

2008-05-08 Thread Gabriel Genellina
En Wed, 07 May 2008 23:29:58 -0300, <[EMAIL PROTECTED]> escribió: > On 5月7日, 上午9时45分, Justin Ezequiel <[EMAIL PROTECTED]> > wrote: >> On May 6, 5:19 pm, [EMAIL PROTECTED] wrote: >> >> > p1 = Popen(['netstat', '-an'], stdout = PIPE) >> > p2 = Popen(['find', '"445"'], stdin = p1.stdout, stdout = PI

Re: how to use subprocess.Popen execute "find" in windows

2008-05-07 Thread clyfish
On 5月7日, 下午2时41分, alito <[EMAIL PROTECTED]> wrote: > On May 6, 7:19 pm, [EMAIL PROTECTED] wrote: > > > In cmd, I can use find like this. > > > C:\>netstat -an | find "445" > > TCP0.0.0.0:4450.0.0.0:0 LISTENING > > UDP0.0.0.0:445*:* > > > C:\> > > > A

Re: how to use subprocess.Popen execute "find" in windows

2008-05-07 Thread clyfish
On 5月7日, 上午9时45分, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > On May 6, 5:19 pm, [EMAIL PROTECTED] wrote: > > > > > In cmd, I can use find like this. > > > C:\>netstat -an | find "445" > > TCP0.0.0.0:4450.0.0.0:0 LISTENING > > UDP0.0.0.0:445*:* > >

Re: how to use subprocess.Popen execute "find" in windows

2008-05-06 Thread alito
On May 6, 7:19 pm, [EMAIL PROTECTED] wrote: > In cmd, I can use find like this. > > C:\>netstat -an | find "445" >   TCP    0.0.0.0:445            0.0.0.0:0              LISTENING >   UDP    0.0.0.0:445            *:* > > C:\> > > And os.system is OK.>>> import os > >>> os.system('netstat -an | fin

Re: how to use subprocess.Popen execute "find" in windows

2008-05-06 Thread Justin Ezequiel
On May 6, 5:19 pm, [EMAIL PROTECTED] wrote: > In cmd, I can use find like this. > > C:\>netstat -an | find "445" > TCP0.0.0.0:4450.0.0.0:0 LISTENING > UDP0.0.0.0:445*:* > > C:\> > > And os.system is OK.>>> import os > >>> os.system('netstat -an | fin

Re: how to use subprocess.Popen execute "find" in windows

2008-05-06 Thread BlueBird
On May 6, 11:19 am, [EMAIL PROTECTED] wrote: > In cmd, I can use find like this. > > C:\>netstat -an | find "445" > TCP0.0.0.0:4450.0.0.0:0 LISTENING > UDP0.0.0.0:445*:* > > C:\> > > And os.system is OK.>>> import os > >>> os.system('netstat -an | fi

Re: how to use subprocess.Popen execute "find" in windows

2008-05-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > In cmd, I can use find like this. > > C:\>netstat -an | find "445" > TCP0.0.0.0:4450.0.0.0:0 LISTENING > UDP0.0.0.0:445*:* > > C:\> > > And os.system is OK. import os os.system('netstat -an | find "445"') >

how to use subprocess.Popen execute "find" in windows

2008-05-06 Thread clyfish
In cmd, I can use find like this. C:\>netstat -an | find "445" TCP0.0.0.0:4450.0.0.0:0 LISTENING UDP0.0.0.0:445*:* C:\> And os.system is OK. >>> import os >>> os.system('netstat -an | find "445"') TCP0.0.0.0:4450.0.0.0:0