Appendix A: Login Script Files
This section describes the script file commands and syntax to be used when editing script files. Script file is only required if your ISP does not use a standard PPP negotiation.
Learn the script syntax
Five commands can be used to automate a proprietary negotiation process. The commands are as follows:
send “<string>” | Send a data string and then go to next line |
|
|
wait “<string>” | Wait to receive a data string, and then go to next line |
|
|
send_id | Send user name |
|
|
send_passwd | Send password corresponding to the user |
|
|
hangup | Hang Up Modem |
|
|
run or run_ppp | Start to run PPP and ignore rest of script |
|
|
Example of the Login Script File
1.Scenario
Your ISP instructs you to log in and issue a PPP command. The system prompts for a login and password. After the ISP’s host sends a welcome message, you enter the “ppp” command. If you logged in manually with a username of “juns” and a password of “1234”, it would look like this:
Enter username: juns
Enter password: 1234 Welcome to Hinet! ppp
Script for this scenario
Your script should look like this:
Wait “:”
Send “juns”
Wait “:”
Send “1234”
Wait “!”
Send “ppp”
Run_ppp
Note: You only need to include the last specific character in the text, in this case “!” in “Welcome to Hinet!”
2.Script file used for CompuServe
The following is the login script used to log on to CompuServe.
Send
Send “CIS”
Wait “:”
Send_id
Wait “:”
Send_passwd
Wait “!”
Send “GO PPPCONNECT”
Run_ppp
17