Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!krell!peebles From: peebles@mips.COM (Andrew Peebles) Newsgroups: comp.lang.perl Subject: perl and pttys Keywords: ptty Message-ID: <37098@mips.mips.COM> Date: 16 Mar 90 02:49:16 GMT Sender: news@mips.COM Reply-To: peebles@mips.COM (Andrew Peebles) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 16 Why can't I seem to run perl attached to the slave side of a psuedo tty? I have a program that creates a ptty, and fork/execs a perl script with its stdin, stdout, and stderr duped to the slave half of the ptty. My wish is to make the perl script think its getting input from stdin and producing output on stdout, when its this parent process that is doing the work. Perl seems to be doing something to its stdin and stdout file descriptors that prevents such control. Anyone done this sort of thing before? How? -- Andrew Peebles {ames,prls,pyramid,decwrl}!mips!peebles or peebles@mips.com MIPS Computer Systems, 930 Arques, Sunnyvale, CA 94086, (408) 991-0443 "quote"