From owner-freebsd-questions@FreeBSD.ORG Fri Dec 24 14:17:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 787B816A4CE; Fri, 24 Dec 2004 14:17:03 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43AF343D48; Fri, 24 Dec 2004 14:17:03 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id 4FADB1299A8; Fri, 24 Dec 2004 10:16:57 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59939-10; Fri, 24 Dec 2004 14:16:57 +0000 (GMT) Received: from ganymede.hub.org (blk-222-250-144.eastlink.ca [24.222.250.144]) by hub.org (Postfix) with ESMTP id 80BAB1298B4; Fri, 24 Dec 2004 10:16:56 -0400 (AST) Received: by ganymede.hub.org (Postfix, from userid 1000) id BED4D4AA67; Fri, 24 Dec 2004 10:17:01 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id B151B4AA5C; Fri, 24 Dec 2004 10:17:01 -0400 (AST) Date: Fri, 24 Dec 2004 10:17:01 -0400 (AST) From: "Marc G. Fournier" To: freebsd-questions@freebsd.org Message-ID: <20041224101222.W1788@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org cc: durist@frii.com cc: freebsd-ports@FreeBSD.org Subject: FreeBSD Jails & Perl: Reading /proc ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 14:17:03 -0000 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