I\'m working on an application controller for a program that is spitting text directly to /dev/tty.
This is a production application controller that must be able to
This is what I did in python
import pty, os pid, fd = pty.fork() if pid == 0: # In the child process execute another command os.execv('./my-progr', ['']) print "Execv never returns :-)" else: while True: try: print os.read(fd,65536), except OSError: break