From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d6413a22d4aaecda X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Program identification Date: 1996/09/15 Message-ID: <1996Sep15.092512.1@eisner>#1/1 X-Deja-AN: 180754230 x-nntp-posting-host: eisner.decus.org references: <323AC25C.722@lmtas.lmco.com> x-nntp-posting-user: KILGALLEN x-trace: 842793921/7776 organization: LJK Software newsgroups: comp.lang.ada Date: 1996-09-15T00:00:00+00:00 List-Id: In article <323AC25C.722@lmtas.lmco.com>, Ken Garlington writes: > James A. Krzyzanowski wrote: >> >> Chris Sparks (sparks@AISF.COM) wrote: >> : Does anyone know of a way to determine the program name within a program >> >> Using Alsys Ada on an HP/UX platform, it would be... >> >> System_Environment.Arg_Value (Index => 0); > > I assume this is the same as Ada.Command_Line.Command_Name? But if so, then it should not be taken as "program name" by the programmer, as it would merely represent whatever the user had chosen to call the program, suitable only for displaying back to the user. It could _not_ be used to determine whether this unit was currently linked into the toaster-pop program or the missile-launch program (same general concept, but on differing scale and requiring different levels of authentication - we hope). Larry Kilgallen