From owner-freebsd-questions Tue Aug 27 0: 4:46 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 1012037B400 for ; Tue, 27 Aug 2002 00:04:44 -0700 (PDT) Received: from marlborough.xo.com (marlborough.xo.com [207.155.248.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF6A143E65 for ; Tue, 27 Aug 2002 00:04:43 -0700 (PDT) (envelope-from fred@timogen.com) Received: from fred ([61.170.151.17]) by marlborough.xo.com id DAA08270; Tue, 27 Aug 2002 03:04:33 -0400 (EDT) [ConcentricHost SMTP Relay 1.14] From: fred@timogen.com Message-ID: <00b501c24e15$a6beb130$8d05a8c0@fred> To: "Fuzzy" Cc: "OrgFreebsd-Questions@Freebsd." References: Subject: Re: pidof command in freebsd Date: Tue, 27 Aug 2002 15:03:49 -0700 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 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 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