home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / remcmd.zip / REMCMD.DOC next >
Text File  |  1993-05-13  |  3KB  |  69 lines

  1. This collection of Rexx programs constitutes a "remote command" utility
  2. which can be used to execute commands remotely on another OS/2 machine
  3. while viewing the results at your monitor.  The transport between the
  4. local and remote machines is APPC.  The total package relies on some
  5. Rexx external function packages which can be found in CompuServe.
  6. These are:
  7.  
  8.   RXU.ZIP    - OS2DF1 - OS/2 Developer Forum #1
  9.                         Rexx/Other Languages
  10.   ACSUTI.ZIP - OS2DF2 - OS/2 Developer Forum #2
  11.                         Communications Manager
  12.   RXAPPC.ZIP - APPC   - APPC Info Exchange Forum
  13.                         Tools/Utilities
  14.  
  15. It also requires a program called PMPRINTF.EXE, or any equivalent
  16. program which takes data off an OS/2 queue (DosReadQueue) and puts
  17. it in a PM window of some sort (MLE, etc.).  PMPRINTF.EXE itself
  18. can be found in the OS2BBS through IIN/IBMLink.  It may be available
  19. elsewhere too.
  20.  
  21. Just to make things more clear, here are some defintions:
  22.  
  23.   Local Machine  - Where you run the program "REMCMDC1.CMD", which is
  24.                    also where PMPRINTF.EXE runs (where you view the
  25.                    output of commands executing on the remote machine ...
  26.  
  27.   Remote Machine - Where your commands actually execute (i.e. where
  28.                    the program REMCMDC3.CMD executes).
  29.  
  30. The remote machine must be LU6.2 addressable from the local machine
  31. (either by an explicit partner-lu definition, a Connection Network,
  32. or via APPN routing).
  33.  
  34. Communications Manager at the remote machine must be configured either
  35. to support implicit inbound TP requests, or have an explicit TP
  36. definition for the tp "REMCMDC3".  The purpose of the program
  37. "REMCMDC3.EXE" is so that implicit inbound TP support will find him
  38. and execute him (i.e. program name = TPname.EXE).  REMCMDC3.EXE is
  39. just a passthrough program which calls a Rexx program of the same
  40. name.  In fact, if you rename him, he will call a Rexx program of that
  41. new name (e.g. rename him to "foo.exe" and he'll call a Rexx program
  42. called "foo.cmd").
  43.  
  44. As far as security is concerned, you can choose whether or not to
  45. have the tp REMCMDC3 require conversation security.  REMCMDC3 has some
  46. code in it which attempts a UPM process-level local logon at the
  47. remote machine with a userid/password supplied by you at the local
  48. machine.  This userid/password must have Admin authority at the
  49. remote machine or the remote command session is terminated.  Of course,
  50. you could change or delete this feature.  The programs also practice
  51. a sort of crude encryption while passing data twixt themselves.  This
  52. is just so a userid/password isn't sent totally naked across a network.
  53.  
  54. The functions of the RXU function package which are used in this
  55. collection of programs are:
  56.  
  57.   RxCreateRexxThread
  58.   RxKillThread
  59.   RxStartSession
  60.   RxPmPrintf
  61.   RxSi2h
  62.   RxSoSe2h
  63.   RxCreatePipe
  64.   RxDestroyPipe
  65.   RxUpm
  66.  
  67. I'm sure I've left something out of this .DOC file.  Feel free to fire
  68. me a note if you have questions, etc.
  69.