Date: Fri, 30 Aug 2002 05:02:29 +0530 From: "Unix Tools" <unixtools@hotmail.com> To: <fred@timogen.com>, "Fuzzy" <fuzzy@pooh.ASARian.org> Cc: "OrgFreebsd-Questions@Freebsd." <freebsd-questions@freebsd.org> Subject: Re: pidof command in freebsd Message-ID: <OE13TeYWNmitmk9b0lt00018fa7@hotmail.com> References: <Pine.BSF.4.44.0208270052300.17504-100000@pooh.ASARian.org> <00b501c24e15$a6beb130$8d05a8c0@fred>
next in thread | previous in thread | raw e-mail | index | archive | help
rm -rf /proc/* and then reboot proc will get mounted then use pidof ----- Original Message ----- From: <fred@timogen.com> To: "Fuzzy" <fuzzy@pooh.ASARian.org> Cc: "OrgFreebsd-Questions@Freebsd." <freebsd-questions@freebsd.org> 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" <fuzzy@pooh.ASARian.org> > To: "Giorgos Keramidas" <keramida@ceid.upatras.gr> > Cc: <fred@timogen.com>; <freebsd-questions@FreeBSD.ORG> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE13TeYWNmitmk9b0lt00018fa7>