home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1996 February
/
IMM0296.ISO
/
direct
/
qsockpro.qip
/
CYBERMND.MPS
< prev
next >
Wrap
Text File
|
1995-12-16
|
1KB
|
56 lines
# CyberNet GmbH PPP
# 05/12/95 - BC
String username
String password
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
CommSend "%r"
CommWaitFor "ogin:"
CommSend username
CommSend "%r"
Print ""
CommWaitFor "assword:"
CommSend password
CommSend "%r"
# VJPPP/PPP...
Print ""
Print "Getting IP address for PPP..."
CommWaitFor ") to"
CommReadIPAddr IPAddress
if result < 7 then
abort "Invalid IP Address!"
endif
CfgSetValue "IPAddress" IPaddress
Print ""
Print "IP Address set to ["; IPAddress; "]"
Print ""
END