home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / patches / patch2amitcp_4.3 / patch / amitcp / ssrx / parsetest.ssrx < prev   
Encoding:
Text File  |  1996-03-30  |  764 b   |  52 lines

  1. /*
  2.  *    $Id$
  3.  *
  4.  *    Example AmiTCP/IP Dial Script
  5.  *
  6.  *    Copyright © 1995 AmiTCP/IP Group,
  7.  *                     Network Solutions Development Inc.
  8.  *                     All rights reserved.
  9.  */
  10.  
  11. DBPRINT "Foo"
  12. Say "Testi1"
  13.  
  14. options results
  15. signal on error
  16.  
  17. Set WaitForTimeout 120
  18.  
  19. ShowConsole
  20.  
  21. SendLn "Testing, type C S L I P:"
  22.  
  23. ManualConsole
  24.  
  25. /*
  26.  * Wait for the end of the test message
  27.  */
  28. WaitFor "CSLIP"
  29.  
  30. /*
  31.  * Get the text message
  32.  */
  33. GetInput
  34. InputData = result
  35.  
  36. Say InputData
  37.  
  38. ParseAddrAfter "Your IP address is"
  39. Say "IP address:" result
  40.  
  41. ParseAddrAfter "Server address is"
  42. Say "Server address:" result
  43.  
  44. ParseAddrAfter "Netmask is"
  45. Say "Netmask:" result
  46.  
  47. exit 0; /* succesfull exit */
  48.  
  49. error:
  50. Say "Command on line" SIGL "returned" RC ":" SerScript.LASTERROR
  51. Exit 10
  52.