HP3000-L Archives

September 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:
Ron Wuerth <[log in to unmask]>
Reply To:
Ron Wuerth <[log in to unmask]>
Date:
Wed, 26 Sep 2001 12:20:18 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (65 lines)
Carl,

Look for CJCW.

Note it's "non existence" at first,
but after exiting the shell it exists with
the exit condition specified.

Ron Wuerth
Virginia International Terminals, Inc.

**********************************************************************

(SYS): showvar cjcw
                    ^
Variable not found in variable table. (CIERR 8106)
(SYS): shell
########################################################################

               MPE/iX Shell and Utilities (A.50.02)
    COPYRIGHT (c) Hewlett-Packard Company 1992, All Rights Reserved.

########################################################################


shell/iX> exit 1
(SYS): showvar cjcw
CJCW = 1
(SYS): shell
########################################################################

               MPE/iX Shell and Utilities (A.50.02)
    COPYRIGHT (c) Hewlett-Packard Company 1992, All Rights Reserved.

########################################################################


shell/iX> exit 2
(SYS): showvar cjcw
CJCW = 2
(SYS):

-----Original Message-----
From: Carl McNamee [mailto:[log in to unmask]]
Sent: Wednesday, September 26, 2001 12:11 PM
To: [log in to unmask]
Subject: [HP3000-L] posix to MPE question ($?)


In our scripts we always "exit" with a number indicating success or failure.
If we are in the posix shell we can check the variable "$?" to see the exit
code.  If we run them from an MPE command line what is the equivalent
variable?

Carl McNamee
Systems Administrator
Billing Concepts
(210) 949-7282

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2