On Fri, Jan 18, 2013 at 2:51 AM, Utpal Sarkar <doe...@gmail.com> wrote: > Thanks a lot Chris and Nobody! I'll have a look at dup2 for a start.
Okay. Look for code that redirects the standard I/O streams and then exec()s another process (possibly after fork()ing); you're going to be doing pretty much the same thing. Good luck, have fun. It's a LOT messier than simply assigning to sys.stdout, unfortunately. ChrisA -- http://mail.python.org/mailman/listinfo/python-list