home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / rxhll.zip / UPM.REX < prev    next >
OS/2 REXX Batch file  |  1993-09-10  |  576b  |  25 lines

  1.  
  2. /* #include <upm.rex> */
  3.  
  4. Logoff: procedure expose MsgQ.
  5.    /**
  6.    ***  Logoff the database
  7.    **/
  8.    '@logoff'
  9.    return
  10.  
  11.  
  12. Logon: procedure expose MsgQ.
  13.    /**
  14.    ***  This will logon to the correct userid and password.  There is a
  15.    ***  problem in that the logon command will prompt the local machine
  16.    ***  if the userid and password is invalid.  Since we want the capability
  17.    ***  to run this over a network, there is only one chance for a correct
  18.    ***  logon.
  19.    **/
  20.  
  21.    parse arg user password .
  22.  
  23.    '@logon' user '/p='password
  24.    return
  25.