🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #780

Re: REXX question

#780
From: cnadler
Date: Mon, 24 Aug 1992 01:18
26 lines
1425 bytes
In  <MONTY.92Aug21122301@blackhole.lerc.nasa.gov>  monty@blackhole.lerc.nasa.gov (Monty Andro) writes:
> 
> Hello,
> 
> I'm rather new to using REXX and can't seem to find what I need in the
> online documentation.  I would like to start an application from REXX
> and be able to send it characters as if they came from the keyboard.
> Is this possible with REXX ?  Normally a program after it has started
> waits for keyboard or mouse input.  I want to simulate this keyboard
> I/O from REXX.  Any suggestions or hints on the feasibility of my need
> would be greatly appreciated.
> 
> Monty
> 

Well, if the program is truly reading from standard in, and not directly from
the keyboard, you could use lineout() to write the data to a file, and then
use :
   TYPE keyinput | pgm
wher pgm is the program you want to run.

Unfortunately, REXX/2 does not have the capability to push data onto it's
queue and have it show up in the next program's input stream (like it can
in CMS REXX).

Cliff
Technical Details
Message-ID: <1992Aug24.011858.22595@watson.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!
From: cnadler@vnet.ibm.com
Subject: Re: REXX question
Note: This contains the views of the appender, not IBM Corporation.
Sender: @watson.ibm.com
Message-ID: <1992Aug24.011858.22595@watson.ibm.com>
Date: Mon, 24 Aug 92 01:18:58 GMT
Organization: Federal System Company, IBM Corporation
Lines: 26