Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!jarthur!uunet!tron!rtaylor From: rtaylor@tron.UUCP (Randy Taylor) Newsgroups: comp.sys.apollo Subject: Re: Getting a process listing... Keywords: process Message-ID: <667@tron.UUCP> Date: 5 Dec 90 16:00:14 GMT References: <1990Dec4.103434.28962@agate.berkeley.edu> Reply-To: rtaylor@tron.bwi.wec.com.UMD.EDU (Randy Taylor) Organization: Westinghouse Electric Corporation Lines: 49 In article <1990Dec4.103434.28962@agate.berkeley.edu> cgd@typhoon.Berkeley.EDU (Chris Demetriou) writes: >I'm sure someone can help me with this: > >I'm trying to write a program (in some ways similar to ps) >for Apollo DN3500s and DN4500s running DomainOS 10.2 (soon 10.3) >which needs to get a list of running processes (and their pids). > >Apollo's documentation on this subject is, umm, not quite >decipherable and/or existent. > >I was wondering if someone out there know what calls can be made, >and how to call them to get the desired information. >If it makes a difference, the program making the calls will be >run as root. > >Thanks in advance. > >Chris Demetriou >OCF Staff/Root > >Please reply to: >cgd@ocf.berkeley.edu Chris - Yes indeed there is a way to get pids AND corresponding process names. I recently copyrighted a program that monitors users activity. It they don't do anything for 15 minutes or so, the program logs them out. Part of the program is a process monitor that gets process ID's and matches them against both process owners and process names. Unfortunately, I can't divulge any more than this because the company I work for (Westinghouse) has copyrighted the program and I can't violate our technology transfer rules. Needless to say, what you want to do CAN be done ! Just play with the calls and read the HP/Apollo "Programming with Domain/OS Calls" manual. Many clues lie within. Also, don't expect much help from Apollo on some of the stickier issues. The automatic log-out program I wrote could have been *easily* done better with a simple mod to the scrto (screen time-out) program, but we could not get Apollo (Corporate level) to give us the time of day. There is a wealth of undocumented system calls that perform a *wide* range of things that could easily do what both you and I want. Apollo *will not* even discuss the calls. Ask them about "rm" & "idm" calls and see what happens ! Randy Taylor