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

  1. Newsgroups: comp.lang.rexx
  2. Path: sparky!uunet!wrkgrp!ets
  3. From: ets@wrkgrp.COM (Edward T Spire)
  4. Subject: Re: Capturing System Command Output (was: SH Backquote)
  5. Message-ID: <1992Aug21.152814.714@wrkgrp.COM>
  6. Organization: The Workstation Group
  7. References: <REXXLIST%92082009243430@UCF1VM.BITNET>
  8. Date: Fri, 21 Aug 92 15:28:14 GMT
  9. Lines: 31
  10.  
  11. flass@136.161.128.3 (Peter Flass) writes:
  12. : >   The committee is leaning towards providing yet another special variable
  13. : >   to indicate the completion status of the command to the external
  14. : >   environment in a standard manner.  ...
  15. : >   ...                Hence the committee is leaning towards adding the
  16. : >   special variable "rs", which would be assigned the value -1, 0, or 1
  17. : >   upon the completion of an external command, meaning failure, normal,
  18. : >   or error status.
  19. : This is a tall order -- A REXX implementation would have to know the
  20. : significance of _all possible_ return codes from _all possible_
  21. : environments.  Since environments are being multiplied constantly
  22. : it might be less confusing not to try.
  23.  
  24. REXX can only ADDRESS commands to environments that have either had
  25. specific REXX support added to them (i.e., an application such as XEDIT)
  26. or that have a fairly sophisticated interface routine (such as is
  27. normally used to address commands to the underlying OS.)  In either case
  28. it is the responsibility of the "callee" (i.e. the application or the
  29. interface routine) to indicate command completion status.  For an
  30. application that is going to support a REXX addressible environment this
  31. is usually not a problem.  It can be a problem for some operating
  32. systems:  In Unix, we can report only success or not, we cannot easily
  33. differentiate between error and failure.
  34.  
  35. ========================================================================
  36.  
  37. Ed Spire                           email: ets@wrkgrp.com      (on uunet)
  38. The Workstation Group              voice: 800-228-0255
  39. 6300 River Road, Suite 700            or  708-696-4800
  40. Rosemont, Illinois  60018            fax: 708-696-2277
  41.