Define Site Chat - Lantronix SCS Reference Manual

Secure console servers
Table of Contents

Advertisement

Command Reference

12.9.4 Define Site Chat

DEFINE SITE SiteName CHAT
Configures a chat script to automate the login sequence when connecting to a remote site. Chat scripts are
a set of commands that send data to the remote site and wait for certain replies after the modems (if any)
have connected. Based on the replies, other commands are executed.
Restrictions
Parameters
String
\N (0x0 hex)
\r (0xd hex)
\t (0x14 hex)
\s (0x20 hex)
AFTER LineNum
BEFORE LineNum
REPLACE LineNum
Requires privileged user status.
SiteName
Enter a site name of up to 12 characters.
After
Inserts a line after another line.
Before
Inserts a line before another line.
Replace
Replaces a line with another line, specified with the LineNum parameter.
The default is to append information to the end of the script.
Timeout
Sets the time to wait before commands, or the number of times to wait for input
before giving up. Must be used in conjunction with the seconds parameter.
seconds
A number of seconds or tries between zero and 65500.
Expect
Looks for a string before executing the next line of the script.
string
The following special characters can be used in CHAT script expect strings,
which are case-sensitive.
Table 12-5:
Meaning
String
Newline
\b (0x8 hex)
Return
\n (0xda hex)
Tab
\\ (0x5c hex)
Space
\octal
12-136
EXPECT string
TIMEOUT seconds
SEND string
DELETE LineNum
Meaning
Backspace
Newline
\
Octal value (i.e., \101 = "A")
Site Commands
FAIL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SCS and is the answer not in the manual?

Table of Contents