Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!csource!david From: david@csource.oz.au (david nugent) Newsgroups: comp.unix.questions Subject: Re: Can Telnet input come from two sources? Message-ID: <555@csource.oz.au> Date: 5 Jul 90 15:16:05 GMT References: <2516@nisca.ircc.ohio-state.edu> Organization: Unique Computing Pty Ltd, Melb, Aust. Lines: 21 In <2516@nisca.ircc.ohio-state.edu> frank@hpuxa.ircc.ohio-state.edu (Frank G. Fiamingo) writes: >I'm trying to setup a front end for the Telnet program for use >by novices. They'll be telneting to various hosts that presents them >with several menu's. I'd like to get them through the menu's by >taking telnet's input from a file, then have the input switch >to stdin. Can this be done? If so, how? Not a file, but it could be taking it from a pipe from another process. That process could then freopen() stdin to /dev/ttyXX if it knew the controlling terminal (or just /dev/tty if it happened to have the same one). BTW, I've never tried this exactly; but this is the first tack I'd take in attempting to solve the problem. -- _______________________________________________________________________________ Unique Computing Pty Ltd Melbourne Australia - Communications Specialists david@csource.oz.au 3:632/348@fidonet 28:4100/1@signet