Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!princeton!udel!burdvax!sdcrdcf!ism780c!mikep From: mikep@ism780c.UUCP (Michael A. Petonic) Newsgroups: comp.unix.wizards Subject: Re: using argv to show process status... Message-ID: <7174@ism780c.UUCP> Date: Wed, 26-Aug-87 22:06:24 EDT Article-I.D.: ism780c.7174 Posted: Wed Aug 26 22:06:24 1987 Date-Received: Sat, 29-Aug-87 10:13:55 EDT References: <405@hubcap.UUCP> Reply-To: mikep@ism780c.UUCP (Michael A. Petonic) Organization: Interactive Systems Corp., Santa Monica CA Lines: 11 Keywords: ULTRIX, WGS... Another way of doing it (informing the SysAdmin about the status of a program) instead of what I earlier proposed (writing information to a file much like the utmp file) is to: (break for lack of anything else) Modify the interpreter so that instead of calling loading "menu" and running it, just execl("/usr/lbin/interp","menu",0) and at the beginning of interp, have a switch statement based on argv[0] which will do the rest. This way you get fast results with a ps (but I still like the other way). MikeP