home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Magazin 1996 March / CD_03_96.BIN / direct / qsockpro.qip / IRD.MPS < prev    next >
Text File  |  1996-02-14  |  969b  |  52 lines

  1. # IRD Germany    VJSLIP...
  2. # 08/08/95 BC
  3.  
  4. String username
  5. String password
  6. String framing
  7. String IPAddress
  8.  
  9. # Trace on
  10. SetTimeout 60
  11.  
  12. CfgGetValue "Username" username
  13. if result = 0 then
  14.         GetInput "Enter your user name" username
  15.     if result = 0 then
  16.         Print "Warning, no username entered"
  17.     else
  18.         Print "Username set to ["; username; "]"
  19.     endif
  20. endif
  21.  
  22. CfgGetValue "Password" password
  23. if result = 0 then
  24.         GetPassword "Enter your password" password
  25.     if result = 0 then
  26.         Print "Warning, no password entered"
  27.     else
  28.         Print "Password set."
  29.     endif
  30. endif
  31.  
  32. # get framing layer (MPPPP, MPSLIP)
  33. CfgGetValue "Framing" framing
  34. if result = 0 then
  35.     Abort "Can't read 'Framing' setting from qdeck.ini"
  36. endif
  37.     CommWaitFor    "ogin:"
  38.     CommSend    username
  39.     CommSend    "%r"
  40.     CommWaitFor    "assword:"
  41.     CommSend    password
  42.     CommSend    "%r"
  43.     
  44. if framing = "MPSLIP" then
  45.     print        ""
  46.     Print        "Getting IP address for SLIP..."
  47.     print        ""
  48. endif
  49.  
  50. END
  51.  
  52.