GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Proc::Find::Parents(3) User Contributed Perl Documentation Proc::Find::Parents(3)

Proc::Find::Parents - Find parents of a process (up to the root)

This document describes version 0.631 of Proc::Find::Parents (from Perl distribution Proc-Find-Parents), released on 2018-01-17.

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:

 [{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")

Either "proctable" (the default, which means to use Proc::ProcessTable) or "pstree" (which uses the pstree command, which might not be portable between Unices).

Please visit the project's homepage at <https://metacpan.org/release/Proc-Find-Parents>.

Source repository is at <https://github.com/perlancar/perl-SHARYANTO-Proc-Util>.

Please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Proc-Find-Parents>

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.

Proc::ProcessTable. Pros: does not depend on "pstree" command, process names not truncated by "pstree", works on Windows. Cons: a little bit more heavyweight (uses File::Spec, Cwd, File::Find).

perlancar <perlancar@cpan.org>

This software is copyright (c) 2018, 2014, 2013 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2018-01-17 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.