Surfari.Net Trumpet Login.Cmd Settings



# This is the Login.Cmd file used for Trumpet Winsock v2.0 Revision B

# For use on Surfari.Net Internet Providers Service. Place it in the

# directory on your system that Trumpet is ran from.


#trace on

#

# set up some strings for dialing up

#

if ![load $number]

if [query $number "Enter your dial up phone number"]

save $number

end

end

if ![load $username]

if [username "Enter your login username"]

save $username

end

end

if ![load $password]

if [password "Enter your login password"]

save $password

end

end

# Below you can modify the modem string ($modemstring) to suit your modem.

$modemstring = "&F&C1&D2"

$userprompt = "Login:"

$passprompt = "Password:"

$dialstring = "atdt" + $number

%attempts = 10

#

# initialize modem

#

output "atz"\13

if ! [input 10 OK\n]

display Modem is not responding -- Aborting\n

abort

end

#

# setup our modem commands

#

output "at"$modemstring\n

if ! [input 10 OK\n]

display Unable to dial -- Aborting\n

abort

end

#

# dial phone number

#

%tries = 0

repeat

sleep 1

%tries = %tries + 1

if %tries > %attempts

message "Too many dial attempts"

abort

end

outputecho 60 $dialstring\r

%timeout = [read 30 $connection]

if ! %timeout

display No connection -- Dial timed out\n

end

$result = copy($connection, 1, 7)

until $result ="CONNECT"

input 10 \n

#

#

# wait till it's safe to send because some modem's hang up

# if you transmit during the connection phase

#

#

wait 30 dcd

#

# wait for the username prompt

#

input 30 $userprompt

output $username\13

#

# and the password

#

input 30 $passprompt

output $password\13

#

# we are now logged in

#

# You may Un-Comment out the line below to auto-load Netscape
# after the script has completed.

#exec Netscape.Exe
end

Back to HELP

Last Page Modification On