Date: Mon, 27 Dec 2004 09:21:58 -0600 From: Kirk Strauser <kirk@strauser.com> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD Jails & Perl: Reading /proc ... Message-ID: <200412270922.01450.kirk@strauser.com> In-Reply-To: <20041224101222.W1788@ganymede.hub.org> References: <20041224101222.W1788@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2988122.sdbQliCg1y Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 24 December 2004 08:17, Marc G. Fournier wrote: > I'm trying to read /proc/*/status, specifically to find what processes > belong to what jail ... but, doing 'direct views' on it tends to generate > errors since processes "come-n-go" ... I had the same problem when I was writing JailAdmin (sysutils/jailadmin),=20 and eventually solved it by using jexec to execute ps from within a jail. = =20 This is actually a lot faster than opening and reading a lot of files from= =20 within /proc, *and* allows you to run a system without a mounted proc=20 filesystem should you want to do so. =2D-=20 Kirk Strauser --nextPart2988122.sdbQliCg1y Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iD8DBQBB0CiZ5sRg+Y0CpvERAjsmAJwNiF6scT3mD1dNRpzpka2B/8VmKACfVvyz FW2L70hoNRAo5xa9444GZKg= =7EqR -----END PGP SIGNATURE----- --nextPart2988122.sdbQliCg1y--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412270922.01450.kirk>