doing my pipe between 2 process
elrik
elrik-de-melnibone at ifrance.com
Mon Mar 29 10:51:36 EST 2004
More information about the Python-list mailing list
Mon Mar 29 10:51:36 EST 2004
- Previous message (by thread): doing my pipe between 2 process
- Next message (by thread): rlght click menu missing in most Tk apps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I want catch stdout and stderr of an child process and read them with the parent process. It's like popen4 but wihout shell commande. something like that : r, w = os.pipe() input= os.fdopen(w) pid=os.fork() if pid: #parent while 1: input.read() else: os.dup2(w, sys.stdout.fileno()) print 'exemple' sys.stdout.flush() but il doesn't work! How can i make a write AND read file descriptor ? Thanks
- Previous message (by thread): doing my pipe between 2 process
- Next message (by thread): rlght click menu missing in most Tk apps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list