From owner-freebsd-questions Fri Aug 30 4:18:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D391E37B400 for ; Fri, 30 Aug 2002 04:18:13 -0700 (PDT) Received: from hotmail.com (oe13.pav2.hotmail.com [64.4.36.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8713243E65 for ; Fri, 30 Aug 2002 04:18:13 -0700 (PDT) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 30 Aug 2002 04:18:13 -0700 X-Originating-IP: [202.41.224.36] From: "Unix Tools" To: , "Fuzzy" Cc: "OrgFreebsd-Questions@Freebsd." References: <00b501c24e15$a6beb130$8d05a8c0@fred> Subject: Re: pidof command in freebsd Date: Fri, 30 Aug 2002 05:02:29 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 30 Aug 2002 11:18:13.0487 (UTC) FILETIME=[EE2797F0:01C25016] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rm -rf /proc/* and then reboot proc will get mounted then use pidof ----- Original Message ----- From: To: "Fuzzy" Cc: "OrgFreebsd-Questions@Freebsd." Sent: Wednesday, August 28, 2002 03:33 AM Subject: Re: pidof command in freebsd > Hi, > > Thanks very much! > I had install it. > But there is a new problem, when the command > > # /usr/local/bin/pidof named > > there are some outputs: > /proc is empty (not mounted ?) > > I notice that the *.pid files are in > > /var/run/ > > Are there any ways to find the pid by pidof? > > Regards, > Fred Zhang > > > > ----- Original Message ----- > From: "Fuzzy" > To: "Giorgos Keramidas" > Cc: ; > Sent: Monday, August 26, 2002 9:58 PM > Subject: Re: pidof command in freebsd > > > > > > On Tue, 27 Aug 2002, Giorgos Keramidas wrote: > > > > > On 2002-08-27 11:53 +0000, fred@timogen.com wrote: > > > > There is a command pidof in linux, which can get the pid of a program. > > > > Does there are some commands in freebsd which have the same functions? > > > > > > Yes, ps(1). > > > > > > > > > pidof -V > > pidof from psmisc version 17 > > > > Port: psmisc-17 > > Path: /usr/ports/sysutils/psmisc > > Info: A port of the Linux pstree, killall and pidof commands > > Maint: rantapaa@uswest.net > > Index: sysutils > > B-deps: > > R-deps: > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message