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

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Dec 11 20:59:43 EST 2006


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



More information about the Python-list mailing list