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:
"Clark, Rick" <[log in to unmask]>
Reply To:
Clark, Rick
Date:
Wed, 26 Sep 2001 13:56:01 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (98 lines)
Confirmed..

A clean exit from the posix shell sets CJCW = 0

:showjcw cjcw
CJCW=0

:sh -L
shell/ix>uisaouf
uisaouf: not found
exit
:showjcw cjcw
CJCW=127

:sh _L
shell/ix>exit
:showjcw cjcw
CJCW=0


Timing is everything. I am currently working with the posix shell in a batch
job and needed this! Thanks Carl.

Now, anyone know where to find the list of codes?


Rick Clark
Systems Manager
WW&R
Cleveland, Ohio


> -----Original Message-----
> From: Carl McNamee [mailto:[log in to unmask]]
> Sent: Wednesday, September 26, 2001 1:42 PM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] posix to MPE question ($?)
>
>
> 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 *
>

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

ATOM RSS1 RSS2