Command Reference
Site Commands
12-137
Fail
Uses the number specified as the Timeout
seconds
parameter to set the number
of times the search for a string (specified with the Expect parameter) can fail
before the whole script will give up. Each time the Expect command fails, the
script continues at the last Fail command. This permits looping while waiting
for a given prompt.
A sample script is displayed below.
Local>> DEFINE SITE irvine CHAT TIMEOUT 4 FAIL
Local>> DEFINE SITE irvine CHAT SEND ““
Local>> DEFINE SITE irvine CHAT TIMEOUT 2 EXPECT “login:”
This script will send a newline and wait for the string “login:” for two seconds.
If found, the script will continue. If not, the script will search again three times
before failing.
Send
Sends the specified string, followed by a newline character (0xd hex, 13
ASCII). If a string is not specified, only a carriage return is sent.
Delete
Removes a line.
LineNum
The line to remove.
Defaults
Timeout: 0 (None defined)
marker and string: not defined
Examples
Local>> CHAT REPLACE 1 EXPECT “login:”
Local>> CHAT DELETE 1
Local>> CHAT TIMEOUT 2 EXPECT “login:”
Local>> DEFINE SITE irvine CHAT SEND “hello?”
Local>> DEFINE SITE irvine CHAT REPLACE 4 TIMEOUT 3 EXPECT “login:”
See Also
Show/Monitor/List Sites Chat, page 12-149;
Chat Scripts
, page 5-3
Содержание SCS
Страница 14: ...xii ...
Страница 171: ...Modem Sharing Examples 10 6 ...
Страница 314: ...Command Reference Service Commands 12 110 ...
Страница 403: ...Show 802 11 Errors Rightmost Number B 5 00000002 Internal error 00000001 Internal error ...
Страница 424: ...Index 13 ...