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:
Lee Courtney <[log in to unmask]>
Reply To:
Lee Courtney <[log in to unmask]>
Date:
Mon, 6 Oct 1997 18:22:43 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 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.

Look at either AIFPROCGET or PROCINFO which will return the PIN of the
processes father and then the program file name which you can then compare
to CI.PUB.SYS or SH.HPBIN.SYS.

Lee Courtney
Monterey Software Group Inc.

10420 S. DeAnza Blvd #C8
Cupertino, California USA 95014-3031
Voice:  408-253-1778    Fax: 408-253-1815
E-Mail: [log in to unmask]

www.editcorp.com/Businesses/MontereySoftware

ATOM RSS1 RSS2