| Table 3.5 Commands Commonly Used for Dial-Up Scripting |
| Command |
Result |
| proc <name> |
Begins the script procedure. All scripts must have a main procedure (proc main). The script begins running at the main procedure and stops at the end of the main procedure. |
| Endproc |
Ends the script procedure. When this command is reached in the main procedure, Dial-Up Networking will start PPP or SLIP. |
| Delay <n seconds> |
Pauses for n seconds before executing the next command. For example, delay 2 will pause for two seconds. |
| waitfor <string> |
Waits until the specified characters are sent by the computer you are connecting to before executing the next command. See the table entry for <string > for details on special characters. The value you specify for <string > is case-sensitive.
For example, waitfor USERNAME waits until USERNAME (in all capital letters) is received from the computer you are connecting to.
|
| transmit <string> transmit $USERID transmit $PASSWORD |
Sends the specified characters or your user name or password to the computer you are connecting to. The user name and password variables are automatically set to the user name and password for the Dial-Up Networking connection that you assign the script to. The transmit $USERID or transmit $PASSWORD command is usually needed, followed by transmit ^M to send a carriage return character. |
| ; |
Indicates a comment. All text preceded by a semicolon is ignored; for example, ;this is a comment. |
| <string> |
You can use any character as part of a string, including ^char. If char is a value between @ and _, then the character sequence is translated to a single-byte value between 0 and 31. For example, ^M is converted to a carriage return. If char is a value between a and z, then the character sequence is translated to a single-byte value between 1 and 26. If char is any other value, then the character sequence is not treated specially.
<cr> Sends or receives a carriage return.
<lf> Sends or receives a line feed.
\ Includes a double quote as part of the string.
\< Includes a < as part of the string.
\\ Includes a backslash as part of the string.
For example, transmit Joe^M sends Joe, followed by a carriage return, to the remote computer; waitfor Joe<cr><lf> waits to receive Joe, followed by a carriage return and a line feed, from the remote computer before executing the next command in the script.
|