x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Jornada 680 Dial-up with script

Mentat Tir Page Icon Posted 2007-04-30 8:23 PM
#
Avatar image of Mentat Tir
H/PC Newbie

Posts:
6
Location:
United States
Status:
My ISP requires that there be a script (see below) added as part of the logon for its dial-up service. I'm using the HP dialup program, but I don't see an option to add this script anywhere. Without the script, the dial-up fails.

Any ideas would be greatly appreciated!

Quote
proc main

string prefix = "aolnet/ent."
string UID = prefix + $USERID

waitfor
"ANSNet" then DoANSLogin,
"Login:" then DoPPPLogin,
"sername:" then DoDirLogin,
"% Username:" then DoPRLogin
until 20

DoANSLogin:
waitfor "login" until 5
if $SUCCESS then
transmit prefix + $USERID, raw
transmit "^M"
goto DONE
endif

DoPPPLogin:
transmit UID, raw
transmit "^M"
waitfor "Password" until 5
transmit $PASSWORD, raw
transmit "^M"
waitfor ">" until 5
transmit "ppp", raw
transmit "^M"
goto DONE

DoDirLogin:
transmit UID, raw
transmit "^M"
waitfor "Password" until 5
transmit $PASSWORD, raw
transmit "^M"
goto DONE

DoPRLogin:
waitfor "% Username:" until 20
if $SUCCESS then
transmit UID, raw
transmit "^M"
waitfor "Password" until 5
transmit $PASSWORD, raw
transmit "^M"
goto DONE
endif

DONE:
delay 2
endproc
 Top of the page
cmonex Page Icon Posted 2007-04-30 8:25 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
dialupmaster (a program) lets you use scripts - or maybe use the built in terminal app?
 Top of the page
Mentat Tir Page Icon Posted 2007-05-02 8:42 AM
#
Avatar image of Mentat Tir
H/PC Newbie

Posts:
6
Location:
United States
Status:
Dialupmaster didn't work on the first attempt, but I'm not giving up. Thanks for a point in the right direction!
 Top of the page
Jump to forum:
Seconds to generate: 0.140 - Cached queries : 43 - Executed queries : 26