PowerTerm can easily be setup to automate the login process, so that all steps necessary to login to a host computer can be activated via a script. Here are 2 sample login scripts, one for a modem connection and the other for a telnet connection:
MODEM CONNECTION
send "atdt1-212-872-8181^M"
wait 30 for "CONNECT 9600"
send "^M"
wait 10 for "login:"
send "joseph^M"
wait 10 for "Password:"
send "cotten^M"
TELNET CONNECTION
wait 10 for "login:"
send "wesley"
wait 10 for "Password:"
send "snipes"
In the above examples,
- The send command sends the following string to the host.
- The `^M` means the caret character followed by the letter `M`, and it represents the newline/Enter key.
- The wait command causes the script to pause until the indicated string is received from the host.
|