[plug] .telnetrc or Expect for telnet automation?
Peter Caffin
pc at it.net.au
Thu Apr 22 16:31:36 WST 1999
8~On Thu, 22 Apr 1999 cthart at gbs.com.au wrote:
> Surely some variable like REMOTEHOST will be set?
> In the .bashrc or .cshrc of the remote machine check
> where that's coming from and stty erase appropriately.
Hmmm. No idea. But this gave me a good idea, though.
In the SCO box's ~/.profile (or ~/.kshrc or whatever), I added:
LBKSP=^? # That was the character I got when pressing the
# backspace key.
And in the expect script, I added:
send "stty erase \$LBKSP\n"
Absurdly easy! And it worked :).
--: _ _ _ _
_W.RBoo__ |_|_ |__ _ | _ |_|_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