Small company logo:
   History
 
Advertising banner:
 
 L6
Home • .OnlineHelp • en • Client Help 7100 • L6
 
About modem connection scripts
If you use a modem and require a special connection script to connect to a server, you can create a connection script file, then choose this file at "Script" when you configure connection information.
A connection script executes automatically when a modem initiates or answers a call. You may need such a script, for example, if you are connecting through an X.25 network.
To create a connection script file:
1       Use a text editor to type the appropriate connection script commands.
2       Save the script as a plain text file with an extension of .fcl.
3       Move the file into FirstClass' Scripts folder.
Connection script commands
Use the following commands as required to build your connection script.
DELAY
Syntax
DELAY time
Description
DELAY tells the server to wait for a specified time. The value time is the time you want the server to wait, in 60ths of a second.
Example
DELAY 600
tells the server to wait 10 seconds
DISPLAY
Syntax
DISPLAY text -D
or
DISPLAY "text string" -D
Description
DISPLAY sends text to the modem for display purposes only. The value text is the text you want to send to the modem. If this text contains spaces, enclose the whole text string in single or double quotation marks.
Example
DISPLAY "X.25 login sequence starting" -D
displays this:
X.25 login sequence starting
SEND
Syntax
SEND text
or
SEND "text string"
Escape sequences
You can add the following escape sequences to this command:
•       \r - adds a carriage return after the text
•       \n - starts the text on a new line.
Description
SEND sends text to the modem. The value text is the text you want to send to the modem. If this text contains spaces, enclose the whole text string in single or double quotation marks.
Example
SEND an63z\r
sends the password an63z, followed by a carriage return, to the modem
WAITFOR
Syntax
WAITFOR string1 string2 ... stringn -T timeout
or
WAITFOR "string1" "string2" ... "stringn" -T timeout
Description
WAITFOR tells the server to wait a specified time for any of the strings included in this command to be returned from the remote modem. If none of these strings are received during this time, the server terminates the connection attempt and reports a 1083 error (timeout in script).
The string values are the strings you want the server to wait for. If a string contains spaces, enclose it in single or double quotation marks. You can list as many strings as you want.
The timeout value is the time you want the server to wait, in 60ths of a second.
Example
WAITFOR service disconnect "no carrier" -T1200
tells the server to wait 20 seconds for any of these strings: service, disconnect, or no carrier