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:
Donna Garverick <[log in to unmask]>
Reply To:
Date:
Wed, 26 Sep 2001 09:26:09 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
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 *

ATOM RSS1 RSS2