Date: Fri, 24 Dec 2004 10:17:01 -0400 (AST) From: "Marc G. Fournier" <scrappy@hub.org> To: freebsd-questions@freebsd.org Cc: freebsd-ports@FreeBSD.org Subject: FreeBSD Jails & Perl: Reading /proc ... Message-ID: <20041224101222.W1788@ganymede.hub.org>
next in thread | raw e-mail | index | archive | help
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" ... So, I loaded p5-Proc-ProcessTable, since it looked the closest to what I'm looking for, but it doesn't report 'hostname': uid: 80 gid: 80 pid: 21271 ppid: 21267 pgrp: 21267 sess: 21267 flags: noflags utime: 73.000000 stime: 331.000000 time: 404.000000 wchan: lockf start: 1101753695.000000 euid: 80 egid: 80 fname: httpd state: lockf ttydev: ttynum: -1 cmndline: /usr/local/sbin/httpd priority: 0 Not sure how hard it would be to add this to Proc::ProcessTable ... but is there another way that I should be doing this? Thanks ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041224101222.W1788>