home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / rexx / 825 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.6 KB

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!csn!stortek!sanitas!pg
  2. From: pg@sanitas.stortek.com (Paul Gilmartin)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Capturing System Command Output (was: SH Backquote)
  5. Message-ID: <1992Aug28.234136.6485@stortek.com>
  6. Date: 28 Aug 92 23:41:36 GMT
  7. References: <1992Aug28.183336.15975@wrkgrp.COM>
  8. Sender: usenet@stortek.com
  9. Organization: Storage Technology Corp.
  10. Lines: 32
  11. Nntp-Posting-Host: sanitas.stortek.com
  12. X-Newsreader: Tin 1.1 PL5
  13.  
  14. Edward T Spire (ets@wrkgrp.COM) wrote:
  15.    
  16. : The nice thing about doing this kind of stuff exclusively with functions
  17. : is that it's easy to test (external functions) and you don't risk the
  18. : chance of damaging the language when you do it that way.
  19.  
  20. Gee, That's _exactly_ the enhancement I'd like to see in the 'POPEN'
  21. built-in function of your employer's uni-REXX product.  :-)
  22.  
  23. : You would need to firm up this idea of using a program-specified
  24. : filename as a handle on an interprocess communications port, and think
  25. : about it's impact on the file namespace and accessibility to other
  26. : files, etc.
  27.  
  28. How about:
  29.     Handle = 'POPEN'(command, type)  /* args as in the C function */
  30.  
  31. The handle returned might well have a form such as:
  32.     /dev/uni-REXX/process-id
  33.  
  34. this should have minimal impact on the file namespace, since:
  35.  
  36.     uni-REXX is a registered trademark of The Workstation Group.
  37.  
  38. : My impression is that it was no small feat to craft REXX so that it is
  39. : easy to use and powerful at the same time.  I would not want to go
  40. : wading off on some large extensions like this without their being
  41. : carefully thought out and field tested.
  42.  
  43. Agreed.
  44.  
  45. -gil
  46.