FreeBSD Jails & Perl: Reading /proc ...
Marc G. Fournier
scrappy at hub.org
Fri Dec 24 06:17:03 PST 2004
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 at hub.org Yahoo!: yscrappy ICQ: 7615664
More information about the freebsd-ports
mailing list