Historical notes on Tcl and Tk according to John Ousterhout
- Guarantees transmission via remote system echo
- Tolerates remote terminal control codes and garbage characters in the echo of the sent string
- Persistence of attempts and hierarchy of methods before declaring a failure
- Interactively edits and retransmits command lines that cannot be verified
- Maintains its own moving-window diagnostics files, so they are small and directly associated with the errors
send_expect id command;
id = the spawn id of the session on which to send the command, andcommand = the entire command string including the terminating carriage-return, if any.
1) send the entire string and hope for the best (fastest, but least reliable)
2) send the entire string using the send_slow list
3) send the string in blocks of eight characters
4) send the string one character at a time (slowest, but most reliable)
sendGlobals(ModeXFailMax), where X is either 1,2 or 3.