Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!prism!dali.gatech.edu!mikeg From: mike@penguin.gatech.edu (Mike Gourlay) Newsgroups: comp.unix.questions Subject: how to popen telnet ??? Message-ID: <1990Nov30.033708@dali.gatech.edu> Date: 30 Nov 90 08:37:08 GMT Sender: news@prism.gatech.EDU Reply-To: mike@penguin.gatech.edu (Mike Gourlay) Organization: Georgia Tech Lines: 25 Hi. I want to use telnet from another program, but it seems that telnet does not use stdin. How do you get telnet to take input from stdin, especially when using popen? In case there's another way to do what I want, here's my plan: There is a modem sitting on a telnet port on some computer. I want to connect to that modem and send and receive data to and from that modem. Eventually, once I get a program to do that, I will make that program a character special file named pipe (FIFO) and pu it in /dev/modem so that it could be used by other programs (UUCP for example) transparently. There is no reason that a program using /dev/modem should know that it is a telnet connection to someplace. I know this is possible. Why does telnet not take stdin? In case it's supposed to, and it's just my system, I'm running HPUX 7.0 on an HP9000s370. Thanks, Mike Gourlay mike@penguin.gatech.edu