home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazin 1996 March
/
CD_03_96.BIN
/
direct
/
qsockpro.qip
/
ALLCON.MPS
< prev
next >
Wrap
Text File
|
1996-02-14
|
1KB
|
70 lines
# Allcon Flensburg Germany PPP/SLIP/CSLIP login
# 08/08/95 BC
String username
String password
String framing
String IPAddress
# Trace on
SetTimeout 60
CfgGetValue "Username" username
if result = 0 then
GetInput "Enter your user name" username
if result = 0 then
Print "Warning, no username entered"
else
Print "Username set to ["; username; "]"
endif
endif
CfgGetValue "Password" password
if result = 0 then
GetPassword "Enter your password" password
if result = 0 then
Print "Warning, no password entered"
else
Print "Password set."
endif
endif
CfgGetValue "Framing" framing
if result = 0 then
Abort "Can't read 'Framing' setting from qdeck.ini"
endif
# Start login proc...
CommWaitFor "ost:"
if framing = "MPSLIP" then
CommSend "slip" # Set Protocol to VJSLIP/SLIP
CommSend "%r"
else
CommSend "ppp" # Set Protocol to VJPPP/PPP
CommSend "%r"
endif
CommWaitFor "ogin:"
if framing = "MPSLIP" then
CommSend "CS" # CS for VJSLIP, S for SLIP
else
CommSend "P" # P for VJPPP/PPP
endif
CommSend username
CommSend "%r"
CommWaitFor "word:"
CommSend password
CommSend "%r"
if framing = "MPSLIP" then
CommWaitFor ") to"
CommReadIPAddr IPAddress
CfgSetValue "IPAddress" IPaddress
Print ""
Print "IP Address set to ["; IPAddress; "]"
else
Print "Framing is PPP"
endif
END