Matches Proc::ProcessTable::Process against a set of rules.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Zane C. B-H 256af82bbc handle time on linux 2 years ago
..
lib/Proc/ProcessTable handle time on linux 2 years ago
t remove a random key stroke in EGID, update manifest, and add some more load tests 2 years ago
Changes handle time on linux 2 years ago
MANIFEST remove a random key stroke in EGID, update manifest, and add some more load tests 2 years ago
Makefile.PL more work done on putting this together 2 years ago
README doc update 2 years ago
ignore.txt add initial files for Proc::ProcessTable::Match 2 years ago

README

Proc-ProcessTable-Match

This provides a hand means to construct filters to use to match
with Proc::ProcessTable for matching Proc::ProcessTable::Process
objects.

use Proc::ProcessTable::Match;
use Proc::ProcessTable;
use Data::Dumper;

# looks for a kernel proc with the PID of 0
my %args=(
checks=>[
{
type=>'PID',
invert=>0,
args=>{
pids=>['0'],
}
},{
type=>'KernProc',
invert=>0,
args=>{
}
}
]
);

# hits on every proc but the idle proc
%args=(
checks=>[
{
type=>'Idle',
invert=>1,
args=>{
}
}
]
);

my $ppm;
eval{
$ppm=Proc::ProcessTable::Match->new( \%args );
} or die "New failed with...".$@;

my $pt = Proc::ProcessTable->new;
foreach my $proc ( @{$t->table} ){
if ( $ppm->match( $proc ) ){
print Dumper( $proc );
}
}

INSTALLATION

To install this module, run the following commands:

perl Makefile.PL
make
make test
make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

perldoc Proc::ProcessTable::Match

You can also look for information at:

RT, CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Proc-ProcessTable-Match

AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Proc-ProcessTable-Match

CPAN Ratings
https://cpanratings.perl.org/d/Proc-ProcessTable-Match

Search CPAN
https://metacpan.org/release/Proc-ProcessTable-Match

Repository
https://gitea.eesdp.org/vvelox/Proc-ProcessTable-Match


LICENSE AND COPYRIGHT

This software is Copyright (c) 2019 by Zane C. Bowers-Hadley.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)