home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / AUSNET.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.2 KB  |  50 lines

  1. # AUSNet Services (Australia) PPP login script
  2. # Copyright 1995 Quarterdeck Corporation
  3. # 5-8-95 Earl White
  4.  
  5. STRING username
  6. STRING password
  7.  
  8. TRACE OFF
  9.  
  10. SetTimeout      90                      # reset maximum script timeout
  11.  
  12. # Get username from access method
  13. CfgGetValue "Username" username
  14.  
  15. IF result = 0 THEN
  16.     GetInput "Enter your username:" username
  17.     IF result = 0 THEN
  18.         PRINT "Warning, no username entered."
  19.     ELSE
  20.         PRINT "Username set to:"; username
  21.     ENDIF
  22. ENDIF
  23.  
  24. # Get password from access method
  25. CfgGetValue "Password" password
  26.  
  27. IF result = 0 THEN
  28.     GetPassword "Enter your password:" password
  29.     IF result = 0 THEN
  30.         PRINT "Warning, no password entered."
  31.     ELSE
  32.         PRINT "Password set."
  33.     ENDIF
  34. ENDIF
  35.  
  36. CommWaitFor "Username:"         # wait for username
  37.     CommSend username           # send user name
  38.     CommSend "%r"               # send carriage return
  39.  
  40. CommWaitFor  "Password:"        # wait for password prompt
  41.     CommSend password           # send password
  42.     CommSend "%r"               # send carriage return
  43.  
  44. CommWaitFor  ">"
  45.     CommSend "ppp default"
  46.     CommSend "%r"
  47.  
  48. END                             #success if we got this far
  49.  
  50.