From owner-freebsd-ports Thu Jun 28 7:40:10 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AB85F37B409 for ; Thu, 28 Jun 2001 07:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5SEe2638134; Thu, 28 Jun 2001 07:40:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7174E37B407 for ; Thu, 28 Jun 2001 07:32:47 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5SEWlP37206; Thu, 28 Jun 2001 07:32:47 -0700 (PDT) (envelope-from nobody) Message-Id: <200106281432.f5SEWlP37206@freefall.freebsd.org> Date: Thu, 28 Jun 2001 07:32:47 -0700 (PDT) From: Michael Johnson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/28485: New port p5-Proc-ProcessTable. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28485 >Category: ports >Synopsis: New port p5-Proc-ProcessTable. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 28 07:40:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Michael Johnson >Release: >Organization: >Environment: >Description: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Proc-ProcessTable/ # p5-Proc-ProcessTable/Makefile # p5-Proc-ProcessTable/distinfo # p5-Proc-ProcessTable/pkg-comment # p5-Proc-ProcessTable/pkg-descr # p5-Proc-ProcessTable/pkg-plist # echo c - p5-Proc-ProcessTable/ mkdir -p p5-Proc-ProcessTable/ > /dev/null 2>&1 echo x - p5-Proc-ProcessTable/Makefile sed 's/^X//' >p5-Proc-ProcessTable/Makefile << 'END-of-p5-Proc-ProcessTable/Makefile' X# New ports collection makefile for: Proc-ProcessTable X# Date created: Tue Jun 26 12:46:19 EDT 2001 X# Whom: Michael Johnson X# X XPORTNAME= Proc-ProcessTable XPORTVERSION= 0.31 XCATEGORIES= devel perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Proc XPKGNAMEPREFIX= p5- X XMAINTAINER= ahze@ahze.net X XPERL_CONFIGURE= YES X XMANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} XMAN3= Proc::ProcessTable::Process.3 \ X Proc::Killall.3 \ X Proc::ProcessTable.3 \ X Proc::Killfam.3 X X.include END-of-p5-Proc-ProcessTable/Makefile echo x - p5-Proc-ProcessTable/distinfo sed 's/^X//' >p5-Proc-ProcessTable/distinfo << 'END-of-p5-Proc-ProcessTable/distinfo' XMD5 (Proc-ProcessTable-0.31.tar.gz) = 511ce5719bbc687c8491fe5c8d806412 END-of-p5-Proc-ProcessTable/distinfo echo x - p5-Proc-ProcessTable/pkg-comment sed 's/^X//' >p5-Proc-ProcessTable/pkg-comment << 'END-of-p5-Proc-ProcessTable/pkg-comment' XPerl interface to the unix process table . END-of-p5-Proc-ProcessTable/pkg-comment echo x - p5-Proc-ProcessTable/pkg-descr sed 's/^X//' >p5-Proc-ProcessTable/pkg-descr << 'END-of-p5-Proc-ProcessTable/pkg-descr' XDESCRIPTION X=========== XThis module is a first crack at providing a consistent interface to XUnix (and maybe other multitasking OS's) process table information. XThe impetus for this came about with my frustration at having to parse Xthe output of various systems' ps commands to check whether specific Xprocesses were running on different boxes at a larged mixed Unix site. XThe output format of ps was different on each OS, and sometimes Xchanged with each new release of an OS. Also, running a ps subprocess Xfrom within a perl or shell script and parsing the output was not a Xvery efficient or aesthetic way to do things. X XWith this module, you can do things like this: X X # kill memory pigs X use Proc::ProcessTable; X X $t = new Proc::ProcessTable; X foreach $p ( @{$t->table} ){ X if( $p->pctmem > 95 ){ X $p->kill(9); X } X } XAuthor: END-of-p5-Proc-ProcessTable/pkg-descr echo x - p5-Proc-ProcessTable/pkg-plist sed 's/^X//' >p5-Proc-ProcessTable/pkg-plist << 'END-of-p5-Proc-ProcessTable/pkg-plist' Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/Killall.pm Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/Killfam.pm Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/example.pl Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/ProcessTable/Process.pm Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/ProcessTable.pm X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/ProcessTable X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc END-of-p5-Proc-ProcessTable/pkg-plist exit >How-To-Repeat: >Fix: Sorry for the repeat send of this port , but I never received confirmation email. So I am resending just incase it didnt go through. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message