SHARYANTO::Proc::Util - OS-process-related routines
version 0.61
None are exported by default, but they are exportable.
Return an array containing information about parent processes of $pid up to the parent of all processes (usually init). If $pid is not mentioned, it defaults to $$. The immediate parent is in the first element of array, followed by its parent, and so on. For example:
$pid
init
$$
[{name=>"perl",pid=>13134}, {name=>"konsole",pid=>2232}, {name=>"init",pid=>1}]
Currently retrieves information by calling pstree program. Return undef on failure.
Known options:
method => STR (default: proctable)
proctable
Either proctable (the default, which means to use Proc::ProcessTable) or pstree (which uses the pstree command, which might not be portable between Unices).
pstree
SHARYANTO
Proc::ProcessTable. Pros: does not depend on pstree command, process names not truncated by pstree. Cons: a little bit more heavyweight (uses File::Spec, Cwd, File::Find).
Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Proc-Util.
Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Proc-Util.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Proc-Util
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2014 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install SHARYANTO::Proc::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Proc::Util
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Proc::Util
For more information on module installation, please visit the detailed CPAN module installation guide.