- To: Lucas King <lking@xxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] automating a Telnet session using EXPECT
- From: Rick Welykochy <rick@xxxxxxxxxxxxx>
- Date: Sun Sep 1 09:29:03 2002
- Cc: slug@xxxxxxxxxxx
Lucas King wrote:
> so the question is, how does one handle the control codes that are being
> generated locally. maybe there is some way of passing the terminal
> type, or other information that is required by Telnet, to the Telnet
> session on the command line.
>
> if anyone has any thoughts they would like to share i would/will be
> grateful.
Each time you receive an input character from the telnet session,
run it through an FSM (google for "finite state machine") to decide
what state your program should take next. FSM's make this kind of stuff
child's play.
cheers
rickw
--
_________________________________
Rick Welykochy || Praxis Services
linux: because a PC is a terrible thing to waste
(ksh@xxxxxxxxxxx put this on Tshirts in '93)