Novell Confidential
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
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
simplestatement :=SEND string
listen :=LISTEN FOR timelimit
ENDLISTEN
timelimit:=integer
label := alphanumtext:
string := "text"
alphanumtext := a-zA-Z_0-9
integer := 0-9
text := any character
IF "login:" SEND "my name"
IF TIMEOUT GOTO END
label opt listen
ERROR string opt
LOG string
DONE string opt
GOTO integer
PAUSE integer
SETDTR
SETRTS
CLRDTR
CLRRTS
IF string simplestatement
IF TIMEOUT simplestatement
EVER
Manual (ENU) 21 December 2004
Optimizing the Async Gateway
91
Need help?
Do you have a question about the GROUPWISE 7 ASYNC GATEWAY - INSTALLATION AND ADMINISTRATION and is the answer not in the manual?
Questions and answers