redirecting messgaef from sys.stdout
Ahmad Hosseinzadeh
ahmadhosseinzadeh at yahoo.ca
Tue Jun 7 10:43:30 EDT 2005
Hello,
Im trying to run an external program in my
application. Both are coded in python. I need to write
an independent module that is used in the main
application. Its responsibility is to run the external
program and redirect its stdout and stderr to the main
application.
The applications stdout and stderr are set to an
object and they are not command prompt anymore.
The output is selected by a flag; if true the stdout
and stderr will be redirected to applications stdout
and stderr. If false, the stdout and stderr will be
redirected o command prompt. I dont know how to
redirect the output.
Can anyone help please?
Regards,
Ahmad Hosseinzadeh
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Python-list
mailing list