
92
GroupWise 7 Async Gateway Installation and Administration Guide
Novell Confidential
Manual (ENU) 21 December 2004
IMPORTANT:
There is a difference between sending raw data to a COM port and a modem. If you embed
modem commands in your script, such commands should be followed by \r. For example, if you want to instruct
a modem to dial the number 555-1212, the instruction would be sent to the modem as follows:
SEND "atdt 555-1212\r"
Sample Scripts
“Sample Script for Logging In” on page 92
“Sample Script for Initialization and Dialing” on page 92
Sample Script for Logging In
LOG "Starting the login..."
SEND "something important..." #This is a comment
PAUSE 5
LABEL1:
LISTEN FOR 10
IF "login" SEND "my name"
IF TIMEOUT GOTO LABEL2
ENDLISTEN
LOG "Sent the userid..."
LISTEN FOR 20
IF "passwd" SEND "my password"
IF TIMEOUT GOTO LABEL2
ENDLISTEN
DONE "Login successful!"
LABEL2:
ERROR "Login failed"
Sample Script for Initialization and Dialing
LOG "Initiating Link Specific Script for Connection: Primary"
LOG "Initializing the Modem"
LISTEN FOR 5
IF "RING" GOTO LABEL5
IF "BUSY" GOTO LABEL6
ENDLISTEN
SEND "AT&FX4E0V1&M4&B1&C1&D2&H1&K0&R2S0=2\r" #Init String
# NOTE: Modem commands should
# be followed by "\r".
LISTEN FOR 10
IF "OK" GOTO LABEL1
IF TIMEOUT GOTO LABEL3
ENDLISTEN
LABEL1:
LOG "Modem Successfully Initialized"
LOG "Dialing"
SEND "atdt 555-1212\r"# Dial
LISTEN FOR 30
IF "CONNECT" GOTO LABEL2
IF TIMEOUT GOTO LABEL4
ENDLISTEN
LABEL2:
DONE "Connected!"
LABEL3:
ERROR "The Modem Is Not Responding."
LABEL4:
LOG "Unable to Dial 555-1212."
Содержание 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...