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,4c7b60aff78f20a7 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: How to query active processes from Ada Date: 1997/01/03 Message-ID: <32CD7A2E.794BDF32@escmail.orl.lmco.com>#1/1 X-Deja-AN: 207540912 references: <5aj97p$a9m@news.spar.ca> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Information Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4m) Date: 1997-01-03T00:00:00+00:00 List-Id: James d'Eon wrote: > > Hi, > I have a situation where I am trying to determine if a process is active. I > do know the process ID. This is pretty simple from the command line by using > the 'ps' command, but I have not been successful yet in implementing this in > Ada. Has anyone out there tried this, or have any ideas to point me in the > right direction? That's a UNIX question, not an Ada question. Check the Unix man pages on your system (sections 2 and 3). Just call the appropriate Unix system calls from your Ada program. Alternatively, you could ask in one of the Unix newsgroups. -- T.E.D. | Work - mailto:dennison@escmail.orl.lmco.com | | Home - mailto:dennison@iag.net | | URL - http://www.iag.net/~dennison |