Re: subprocess considered harmfull?

2005-09-26 Thread Roger Upole
"Uri Nix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Roger Upole wrote: >> "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> > Steven Bethard wrote: >> > >> >> > Using the following snippet: >> >> > p = >> >> > subprocess.Popen(nmake,stderr=subproc

Re: subprocess considered harmfull?

2005-09-25 Thread Uri Nix
Roger Upole wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Steven Bethard wrote: > > > >> > Using the following snippet: > >> > p = > >> > subprocess.Popen(nmake,stderr=subprocess.PIPE,stdout=subprocess.PIPE, \ > >> >universal_new

Re: subprocess considered harmfull?

2005-09-25 Thread Roger Upole
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Steven Bethard wrote: > >> > Using the following snippet: >> > p = >> > subprocess.Popen(nmake,stderr=subprocess.PIPE,stdout=subprocess.PIPE, \ >> >universal_newlines=True, bufsize=1) >> > os

Re: subprocess considered harmfull?

2005-09-25 Thread Fredrik Lundh
Steven Bethard wrote: > > Using the following snippet: > > p = > > subprocess.Popen(nmake,stderr=subprocess.PIPE,stdout=subprocess.PIPE, \ > >universal_newlines=True, bufsize=1) > > os.sys.stdout.writelines(p.stdout) > > os.sys.stdout.writelines(p.stderr) > > Works

Re: subprocess considered harmfull?

2005-09-25 Thread Steven Bethard
Uri Nix wrote: > Using the following snippet: > p = > subprocess.Popen(nmake,stderr=subprocess.PIPE,stdout=subprocess.PIPE, \ >universal_newlines=True, bufsize=1) > os.sys.stdout.writelines(p.stdout) > os.sys.stdout.writelines(p.stderr) > Works fine on the command li

Re: subprocess considered harmfull?

2005-09-25 Thread Do Re Mi chel La Si Do
Hi also ! In other fields, I also found uses which did not function with subprocess, but OK with popen2/4 @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

subprocess considered harmfull?

2005-09-25 Thread Uri Nix
Hi all, I've been trying to use (Python 2.4 on WinXP) the subprocess module to execute a shell command (nmake in this case), and pass its output to a higher level. Using the following snippet: p = subprocess.Popen(nmake,stderr=subprocess.PIPE,stdout=subprocess.PIPE, \ u