home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_1_1994.iso / 00190 / s / scripts.lib / DATEXP.SCR < prev    next >
Text File  |  1993-08-18  |  999b  |  57 lines

  1. !
  2. !  Copyright (c) 1993
  3. !  by CompuServe Incorporated, Columbus, Ohio
  4. !
  5. !  The information in this software is subject to change without
  6. !  notice and should not be construed as a commitment by CompuServe.
  7. !
  8. !  DATEX:
  9. !    Connect to Datex-P
  10. !    Success:  returns %Success
  11. !    Failure:  saves error msg in %FailureMsg and returns %Failure
  12. !
  13. !+V
  14. ! "3.1"
  15. !-V
  16.  
  17. show "Connecting to Datex-P";
  18. Tries = 5;
  19. on cancel goto Return_Cancel;
  20.  
  21. Wait_Datex:
  22.     if Tries = 0 goto Datex_Failure;
  23.     Tries = Tries - 1;
  24.     
  25.     wait until 15;
  26.     send ".";
  27.     wait until 15;
  28.     send %CR;
  29.     
  30.     wait
  31.         "DATEX-P:"    goto Send_Datex_Host
  32.     until 30;
  33.  
  34.     goto Wait_Datex;
  35.  
  36. Send_Datex_Host:
  37.     wait until 15;    
  38.     send "R 4569002330" & %CR; 
  39.  
  40.     wait
  41.         "User ID:"    goto Return_Success,
  42.         "Host Name:"    goto Return_Success
  43.     until 150;
  44.  
  45.     goto Wait_Datex;
  46.  
  47. Datex_Failure:
  48.     define %FailureMsg = "Datex-P not responding";
  49.     exit %Failure;
  50.  
  51. Return_Cancel:
  52.     exit %Cancel;
  53.  
  54. Return_Success:
  55.     send %CR;
  56.     exit %Success;
  57.