
Optimizing the Async Gateway
91
Novell Confidential
Manual (ENU) 21 December 2004
LISTEN
The script receives characters from the line and makes a branching decision based on the IF cases
within the LISTEN statement. At least one IF case must be included and a total of four are allowed.
A time limit is optional in the LISTEN statement. In such a case, the listening terminates only
when the connection times out, or if an error occurs. If a time limit is not specified, then the
TIMEOUT case cannot be used in the statement.
The following sample listens on the line for only 10 seconds. During that time, if it receives the
string
login
:, it sends the words “my name” to the line and proceeds to the next statement in the
script.
LISTEN FOR 10
IF "login:" SEND "my name"
IF TIMEOUT GOTO END
ENDLISTEN
LOG "User id has been sent"
Script File Syntax
The formal definition of syntax for the script is given below.
Make sure that you leave a blank line at the end of each script. If not, the gateway is unable to parse
the script and the message “Syntax error: Invalid Statement” appears in the log file.
Script
> :=
statementlist
statementlist
:=
statement
statementlist
statement
:=
label
opt
simplestatement
label
opt
listen
simplestatement
:=SEND
string
ERROR
string
opt
LOG
string
DONE
string
opt
GOTO
integer
PAUSE
integer
SETDTR
SETRTS
CLRDTR
CLRRTS
listen
:=LISTEN FOR
timelimit
IF
string
simplestatement
IF TIMEOUT
simplestatement
ENDLISTEN
timelimi
t:=
integer
EVER
label
:=
alphanumtext
:
string
:= "
text
"
alphanumtext
:= a-zA-Z_0-9
integer
:= 0-9
text
:= any character
Содержание GROUPWISE 7 ASYNC GATEWAY - INSTALLATION AND ADMINISTRATION
Страница 4: ...Novell Confidential Manual ENU 21 December 2004...
Страница 108: ...108 GroupWise 7 Async Gateway Installation and Administration Guide Novell Confidential Manual 99a 21 December 2004...
Страница 112: ...112 GroupWise 7 Async Gateway Installation and Administration Guide Novell Confidential Manual 99a 21 December 2004...
Страница 116: ...116 GroupWise 7 Async Gateway Installation and Administration Guide Novell Confidential Manual 99a 21 December 2004...
Страница 128: ...128 GroupWise 7 Async Gateway Installation and Administration Guide Novell Confidential Manual ENU 21 December 2004...