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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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), and eventually solved it by using jexec to execute ps from within a jail. This is actually a lot faster than opening and reading a lot of files from within /proc, *and* allows you to run a system without a mounted proc filesystem should you want to do so. -- Kirk Strauser [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iD8DBQBB0CiZ5sRg+Y0CpvERAjsmAJwNiF6scT3mD1dNRpzpka2B/8VmKACfVvyz FW2L70hoNRAo5xa9444GZKg= =7EqR -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412270922.01450.kirk>
