home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / comm / term23_2.lha / ARexx / AutoLogin.rexx next >
OS/2 REXX Batch file  |  1992-05-08  |  633b  |  38 lines

  1. /* An example auto-login ARexx script file to be used with `term'. */
  2.  
  3.     /* Start to talk to the `term' main program. */
  4.  
  5. address term
  6.  
  7.     /* We only wish to wait 20 seconds for a sequence to appear. */
  8.  
  9. set timeout 20 sec
  10.  
  11.     /* Wait for the user name prompt to appear... */
  12.  
  13. waitstring "Username:"
  14.  
  15.     /* Wait a bit, don't confuse the mailbox. */
  16.  
  17. delay 2 sec
  18.  
  19.     /* Transmit the user name. */
  20.  
  21. command "\u^M"
  22.  
  23.     /* Wait for the password prompt to appear. */
  24.  
  25. waitstring "Password:";
  26.  
  27.     /* Wait a bit, don't confuse the mailbox. */
  28.  
  29. delay 2 sec
  30.  
  31.     /* Transmit the password. */
  32.  
  33. command "\p^M"
  34.  
  35.     /* Quietly return back to `term'. */
  36.  
  37. quietexit
  38.