?
Current Path : /lib64/perl5/vendor_perl/Proc/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //lib64/perl5/vendor_perl/Proc/example.pl |
#!/usr/bin/perl use Proc::ProcessTable; my $ref = Proc::ProcessTable->new; foreach my $proc (@{$ref->table}) { if(@ARGV) { next unless grep {$_ == $proc->{pid}} @ARGV; } print "--------------------------------\n"; foreach my $field ($ref->fields){ print $field, ": ", $proc->{$field}, "\n"; } }