Linux::GetPidstat::Reader - Read each pid info from a pid dir path
use Linux::GetPidstat::Reader; my $instance = Linux::GetPidstat::Reader->new( pid_dir => './pid', include_child => 1, ); my $pids = $instance->get_program_pid_mapping;
To install Linux::GetPidstat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Linux::GetPidstat
CPAN shell
perl -MCPAN -e shell install Linux::GetPidstat
For more information on module installation, please visit the detailed CPAN module installation guide.