devel/p5-Proc-ProcessTable 0.636 DragonFly
Perl interface to the unix process table
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 26.7 KiB, 57.2 KiB installed
Description
This module is a first crack at providing a consistent interface to Unix (and maybe other multitasking OS's) process table information. The impetus for this came about with my frustration at having to parse the output of various systems' ps commands to check whether specific processes were running on different boxes at a larged mixed Unix site. The output format of ps was different on each OS, and sometimes changed with each new release of an OS. Also, running a ps subprocess from within a perl or shell script and parsing the output was not a very efficient or aesthetic way to do things.
With this module, you can do things like this:
\# kill memory pigs
use Proc::ProcessTable;
my $t = Proc::ProcessTable->new;
foreach my $p ( @{$t->table} ) {
if( $p->pctmem > 95 ){
$p->kill(9);
}
}
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Proc-ProcessTable | 0.636 |
| FreeBSD | devel/p5-Proc-ProcessTable | 0.637 |
| OpenBSD | sysutils/p5-Proc-ProcessTable | 0.637 |
| NetBSD | devel/p5-Proc-ProcessTable | 0.637nb1 |
| HardenedBSD | devel/p5-Proc-ProcessTable | 0.637 |
| GhostBSD | devel/p5-Proc-ProcessTable | 0.637 |
Install
Binary package:
pkg install p5-Proc-ProcessTable
From DPorts:
cd /usr/dports/devel/p5-Proc-ProcessTable && make install clean
Dependencies
Run dependencies 1
Required by 15
- devel/cvsmonitor
- devel/p5-Proc-Find-Parents
- graphics/gscan2pdf
- mail/imapsync
- mail/p5-Mail-Milter-Authentication
- net/p5-Net-Connection-Match
- net/p5-Net-Connection-lsof
- security/p5-openxpki
- sysutils/p5-Proc-ProcessTable-Colorizer
- sysutils/p5-Proc-ProcessTable-InfoString
- sysutils/p5-Proc-ProcessTable-Match
- sysutils/p5-Proc-ProcessTable-ncps
- sysutils/p5-Schedule-Load
- textproc/p5-Sphinx-Manager
- www/ljdeps