Path: utzoo!utgpu!watserv1!watmath!att!rutgers!mit-eddie!snorkelwacker!usc!ucsd!pacbell.com!decwrl!orc!inews!kseshadr@quasar.intel.com From: kseshadr@quasar.intel.com (Kishore Seshadri) Newsgroups: comp.unix.wizards Subject: Re: How to find process name in c? Message-ID: <2492@inews.intel.com> Date: 16 Jul 90 18:07:44 GMT References: <570001@carter.BCASDL.BOEING.COM> Sender: news@inews.intel.com Reply-To: kseshadr@quasar.intel.com (Kishore Seshadri) Organization: Intel Corporation, Santa Clara, California Lines: 18 In-reply-to: lyn@carter.BCASDL.BOEING.COM ( Lyn Stewart ) In article <570001@carter.BCASDL.BOEING.COM>, lyn@carter ( Lyn Stewart ) writes: > > >Has anyone got a method for finding out if a process is running short of >"ps -ef | grep processname" in a pipe. There must be a better way from >within a c program. > > If you're looking for some kind of a library function, I haven't seen one. You could do what ps does and look through the proc table, but its probably not worth the programming effort unless you're doing this real often. Kishore Seshadri =============================================================================== Kishore Seshadri (Speaking only for myself) Intel Corp., Santa Clara, CA CSNET: kseshadr@mipos3.intel.com ARPA: kseshadr%mipos3.intel.com@relay.cs.net UUCP:{amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!kseshadr