Re: newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-12 Thread Gabriel Genellina
At Monday 11/12/2006 23:49, johnny wrote: Gabriel Genellina wrote: > At Monday 11/12/2006 20:47, johnny wrote: > > >How do I pipe the output, generated from os.system(some_command), to > >the logging file? > > Use the subprocess module to run the command instead. I am doing the os.system(encode

Re: newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-11 Thread johnny
I am doing the os.system(encode_cmd) within a thread. So you are saying, have each thread create a subprocess module. Did you mean, "Popen" (os.popen)? Like os.popen(encode_cmd) , not os.system(encode_cmd)? Gabriel Genellina wrote: > At Monday 11/12/2006 20:47, johnny wrote: > > >How do I pipe

Re: newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 20:47, johnny wrote: How do I pipe the output, generated from os.system(some_command), to the logging file? Use the subprocess module to run the command instead. -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio

newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-11 Thread johnny
How do I pipe the output, generated from os.system(some_command), to the logging file? -- http://mail.python.org/mailman/listinfo/python-list