[plug] .telnetrc or Expect for telnet automation?

Peter Caffin pc at it.net.au
Fri Apr 23 21:57:42 WST 1999


On Fri, 23 Apr 1999, Greg Mildenhall wrote:
[...]
> it so easy just to make expect
> invoke a script to run the appropriate stty command? Surely expect cannot
> mangle the commands of a script it runs externally?

That was sort-of the approach I used (though the message seemed to get
lost in the rush :)). I ended up just declaring a character variable
in the SCO box's .kshrc and executing send "stty erase \$LBKSP" which
nicely avoided the issue entirely and saved stacks of time.

I think long scripts which detect hostname and allocate environment
variables must be in fashion some places. Much better to have flexibility
for the client-side anyway so they can change it themselves if they
change configs, OSes or term-types.

--:     _           _    _ _
 _oo__ |_|_ |__  _ |  _ |_|_o _  pc at it dot net dot a u |
//`'\_ | (/_|(/_|  |_(_|| | || |            it.net.au/~pc |
/                 PO Box 869, Hillarys WA 6923, AUSTRALIA |



More information about the plug mailing list