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