Linux::GetPidstat::Writer::File - Write pidstat's results to a file
use Linux::GetPidstat::Writer::File; my $t = localtime; my $instance = Linux::GetPidstat::Writer::File->new( res_file => './res.log', now => $t, dry_run => '0', ); $instance->output('backup_mysql', 'cpu', '21.20');
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.