! Firewall login example. Comments always begin with exclamation mark.
! Define timeout for waitstring command. The default is 3 seconds. You may place this timeout before the waitstring command
!
timeout 5
! Wait for login prompt
WAITSTRING "Username: "
! Don't forget to append carriage return (^M) in the send string.
SEND "jjohn^M"
!Wait for password prompt
WAITSTRING "Password: "
! Password prompt received. Send the password. Use $PASS in the send command. The script processor !would prompt you for the password.
SEND "$PASS^M"
! send connect command. Here I have assumed it is OPEN. $SITE and $PORT are the reserved words and would be replaced by internet host address and port from your phonebook.