home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / rexx / 730 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.3 KB  |  32 lines

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