HP3000-L Archives

October 1997, Week 1

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:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Mon, 6 Oct 1997 15:00:44 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
> Mark Castoe <[log in to unmask]> wrote:
> > I am working on an application which will run under both the MPE CI and
> > the POSIX shell.  I need to be able to determine whether or not the app
> > has been launched under the shell.  Is there an easy way to do this?  I
> > have considered using HPFOPEN to open a file with an HFS filename and
> > checking to see if it fails.

There may be some shell environment variables defined that are not defined
under the CI.  But I like Lee's idea better.  If you get the process type
you will see CI the *root* CI's is different than the shell's.  However,
process type is not a reliable distinction since your app could be run from
a second level CI.

regards,
Jeff Vance, CSY

--

ATOM RSS1 RSS2