HP3000-L Archives

January 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Wed, 24 Jan 2001 13:27:32 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Donna Garverick wrote:
>
> "Emerson, Tom # El Monte" wrote:
>
> > The exit function terminates the calling process.  The parameter status
> > is returned to the MPE/iX command interpreter using the CJCW job control
> > word.  By convention, a status value of zero (0) indicates EXIT_SUCCESS,
> > and a value of one (1) indicates EXIT_FAILURE. You may establish
> > additional return values as required.
>
> i fully aware that ping (plus the programs in hpbin) returns cjcw.  (btw -- can
> anyone comment on that last sentence in the above quote?)

I read that last exit() sentence to mean that the program may return status
values greater than 1 if it desires.  I think the /bin/test command will return
0, 1, or 2.

0 indicates success, and non-zero indicates failure.  There can be more than
one kind of failure.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...

ATOM RSS1 RSS2