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:
Carl McNamee <[log in to unmask]>
Reply To:
Carl McNamee <[log in to unmask]>
Date:
Wed, 26 Sep 2001 12:41:54 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
Actually, and I hope that someone can confirm this, I believe that the ci
variable CJCW is the equivalent.  It gets set to the expected exit code when
I run posix scripts from the ci prompt.

Carl

-----Original Message-----
From: Donna Garverick [mailto:[log in to unmask]]
Sent: Wednesday, September 26, 2001 11:26 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] posix to MPE question ($?)


Carl McNamee wrote:

> 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?

i don't think there is an equivalent...but i wish there was.  for those
wondering, there are (at least?) two mpe commands that almost do the same
thing
-- return (but it doesn't accept a parameter) and escape (that does accept a
parameter but it sets hpcierr).  there is 'exit' too -- but it terminates
the
command interpreter (and in this case....that's not what's needed :-).

so maybe the hardest part to the 'solution' is to pick a word for the
command
that would (eventually?) provide the same functionality as posix
'exit'?           - d

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

>>>MY opinions, not Longs Drug Stores'<<<

* 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