redirecting messgaef from sys.stdout

  • Thread starter Ahmad Hosseinzadeh
  • Start date
A

Ahmad Hosseinzadeh

Hello,

I’m 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 application’s 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 application’s stdout
and stderr. If false, the stdout and stderr will be
redirected o command prompt. I don’t 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top