newb: SENDING os.system(encode_cmd) output to a logging file
johnny
rampeters at gmail.com
Mon Dec 11 21:49:40 EST 2006
More information about the Python-list mailing list
Mon Dec 11 21:49:40 EST 2006
- Previous message (by thread): newb: SENDING os.system(encode_cmd) output to a logging file
- Next message (by thread): newb: SENDING os.system(encode_cmd) output to a logging file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 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 para todos tus mensajes, antivirus y antispam ¡gratis! > ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
- Previous message (by thread): newb: SENDING os.system(encode_cmd) output to a logging file
- Next message (by thread): newb: SENDING os.system(encode_cmd) output to a logging file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list