home *** CD-ROM | disk | FTP | other *** search
/ BlastDOS / Telix.rar / Telix / CIS.SLT < prev    next >
Text File  |  1992-01-09  |  1KB  |  48 lines

  1. ///////////////////////////////  CIS.SLT  ////////////////////////////////////
  2.  
  3. // This is a sample script for logging on to CIS. It doesn't have to be
  4. // this complicated, but this version can handle some strange timing.
  5.  
  6. str user_id[] = "xxxxx,xxxx";
  7.  
  8. // Put your name in the above line. The script will get the proper password
  9. // from the dialing directory (Telix puts that password in the script system
  10. // variable called _entry_pass).
  11.  
  12. // Put your user id and password in the above lines instead of the 'x's
  13. // Before using this script for the first time, or when you make a change,
  14. // type 'cs cis' at the DOS prompt to compile the script for use by Telix.
  15.  
  16. //////////////////////////////////////////////////////////////////////////////
  17.  
  18. main()
  19.  
  20. {
  21.  int n = 0;
  22.  
  23.  alarm (1);
  24.  
  25.  while (n < 5)      // loop up to 5 times to send the Ctrl-C
  26.   {
  27.    delay (25);
  28.    cputc ('^C');
  29.  
  30.    if (waitfor ("User ID:", 7))
  31.     break;
  32.   }
  33.  
  34.  if (n >= 5)
  35.   {
  36.    hangup ();
  37.    return;
  38.   }
  39.  
  40.  cputs(user_id);                  // send user id
  41.  cputs ("^M");                    //   and Carriage Return
  42.  
  43.  waitfor ("Password:", 15);
  44.  cputs (_entry_pass);             // send password
  45.  cputs ("^M");                    //   and Carriage Return
  46.  
  47. }
  48.