From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5c7e7a024c1a2707,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-01 09:19:10 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lille1.fr!zaphod.crihan.fr!news.univ-rennes1.fr!dec1!andrej From: andrej@dec1 (J.C. ANDRE (Progfou)) Newsgroups: comp.unix.osf.osf1 Subject: Howto list processes ? Date: 1 Feb 1995 17:19:10 GMT Organization: Universite des Sciences de Nantes, Fr Message-ID: <3gofqe$b2u@news.univ-rennes1.fr> Reply-To: andrej@ensinfo.univ-nantes.fr NNTP-Posting-Host: dec1.ensinfo.sciences.univ-nantes.fr X-Newsreader: TIN [version 1.2 PL2] [ Article crossposted from comp.sys.dec ] [ Author was J.C. ANDRE (Progfou) (andrej@dec1) ] [ Posted on 18 Jan 1995 10:56:17 GMT ] We are making a tool to kill all processes of a given user. We need to find out the list of his processes with only C functions (no shell please : we know ps ;-) Anybody knows how to do that ? At this time we are trying with opendir, readir on /proc directory. Our problem is not all processes are listed in /proc ! Anybody knows why ? and how to get rid of this ? E-Mail prefered. Any pointers welcome. Thanks ! -- < Linux & Network interest > -= Progfou =- < andrej@ensinfo.univ-nantes.fr > -- < Linux & Network interest > -= Progfou =- < andrej@ensinfo.univ-nantes.fr >