home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
- From: SEB1525@MVS.draper.com (Steve Bacher)
- Subject: Capturing System Command Output (was: SH Backquote)
- Message-ID: <19920818081215SEB1525@MVS.draper.com>
- Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
- Nntp-Posting-Host: mvs.draper.com
- Organization: Draper Laboratory
- Date: Tue, 18 Aug 1992 13:12:00 GMT
- Lines: 20
-
- The recent thread on obtaining output from system commands in a
- REXX exec (aka "backquote") points up a critical need for a
- standard way of doing this.
-
- Currently it is impossible to write an exec that can do this portably,
- even for the same platform! There are now at least 3 different REXX
- implementations for UNIX, and they all have different conventions for
- specifying how to route command output to the stack.
-
- The best approach available to date, hinted at by one of the posts, is
- to write a general-purpose exec that will interrogate the type of REXX
- implementation environment and do the appropriate thing. This would
- have to dump the stuff on the stack, though, because external execs
- can't update stem variables easily.
-
- Is anyone working on defining a standard syntax for this capability?
-
- --
- Steve Bacher (Batchman) Draper Laboratory
- Internet: seb@draper.com Cambridge, MA, USA
-