Pipes like tty's ?

ji at garfield.UUCP ji at garfield.UUCP
Wed Feb 26 09:11:43 AEST 1986


In article <641 at puff.UUCP>, tom at puff.wisc.edu (Thomas Scott Christiansen) writes:
> Does anyone have a nice package that allows you to say something
> like
> 	process("silly_game arg1 arg2",&input_fd,&output_fd,&error_fd)
> and start the process running not on a pipe (I have one of these) but
> rather on a pty so that the proc can 1) do ioctls 2) have line buffered
> output ?
> 

I have hacked popen(3) and used parts of script(1) to do a read-write version
of popen (which I call prwopen!), which also uses pty's instead of pipes.
(popen(3) can be used for either reading or writing to the child, but not 
for both). 

If you people out there think there is no problem with posting modified
unix (tm) sources on the net, I'll gladly post it.


#include <appropriate_disclaimers>

VOICE: 	+1 212 280 5510			ARPA: ioannidis at cs.columbia.EDU
USnail:	John Ioannidis			      ji at garfield.columbia.EDU
	450 Computer Science
	Columbia University,		USENET: ...{seismo|topaz}!
	New York, NY 10027			   columbia!garfield!ji

			... It's all Greek to me!



More information about the Comp.unix.wizards mailing list