From owner-freebsd-ports Tue Jun 26 21:50:20 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 C933A37B406 for ; Tue, 26 Jun 2001 21:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5R4o1b22369; Tue, 26 Jun 2001 21:50:01 -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 04E9B37B406 for ; Tue, 26 Jun 2001 21:42:59 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5R4gwn21913; Tue, 26 Jun 2001 21:42:58 -0700 (PDT) (envelope-from nobody) Message-Id: <200106270442.f5R4gwn21913@freefall.freebsd.org> Date: Tue, 26 Jun 2001 21:42:58 -0700 (PDT) From: Michael Johnson , remove.anything.before@FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org Subject: ports/28437: 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: 28437 >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: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 26 21:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Michael Johnson >Release: 4.3-STABLE >Organization: n/a >Environment: FreeBSD tacobell.ahze.net 4.3-STABLE FreeBSD 4.3-STABLE #4: Sun Jun 24 11:53:06 EDT 2001 root@tacobell.ahze.net:/usr/src/sys/compile/numnums. i386 >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: >Release-Note: >Audit-Trail: >Unformatted: # 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 > Subject: new port p5-Proc-ProcessTable . X-Send-Pr-Version: www-1.0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message