Can Telnet input come from two sources?
david nugent
david at csource.oz.au
Fri Jul 6 01:16:05 AEST 1990
In <2516 at nisca.ircc.ohio-state.edu> frank at 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 at csource.oz.au 3:632/348 at fidonet 28:4100/1 at signet
More information about the Comp.unix.questions
mailing list