home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4400 < prev    next >
Encoding:
Text File  |  1992-08-23  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!
  3. From: cnadler@vnet.ibm.com
  4. Subject: Re: REXX question
  5. Note: This contains the views of the appender, not IBM Corporation.
  6. Sender: @watson.ibm.com
  7. Message-ID: <1992Aug24.011858.22595@watson.ibm.com>
  8. Date: Mon, 24 Aug 92 01:18:58 GMT
  9. Organization: Federal System Company, IBM Corporation
  10. Lines: 26
  11.  
  12. In  <MONTY.92Aug21122301@blackhole.lerc.nasa.gov>  monty@blackhole.lerc.nasa.gov (Monty Andro) writes:
  13. > Hello,
  14. > I'm rather new to using REXX and can't seem to find what I need in the
  15. > online documentation.  I would like to start an application from REXX
  16. > and be able to send it characters as if they came from the keyboard.
  17. > Is this possible with REXX ?  Normally a program after it has started
  18. > waits for keyboard or mouse input.  I want to simulate this keyboard
  19. > I/O from REXX.  Any suggestions or hints on the feasibility of my need
  20. > would be greatly appreciated.
  21. > Monty
  22.  
  23. Well, if the program is truly reading from standard in, and not directly from
  24. the keyboard, you could use lineout() to write the data to a file, and then
  25. use :
  26.    TYPE keyinput | pgm
  27. wher pgm is the program you want to run.
  28.  
  29. Unfortunately, REXX/2 does not have the capability to push data onto it's
  30. queue and have it show up in the next program's input stream (like it can
  31. in CMS REXX).
  32.  
  33. Cliff
  34.