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
Net::Connection::lsof(3) User Contributed Perl Documentation Net::Connection::lsof(3)

Net::Connection::lsof - This uses lsof to generate a array of Net::Connection objects.

Version 0.2.0

    use Net::Connection::lsof;

    my @objects;
    eval{ @objects = &lsof_to_nc_objects; };

    # this time don't resolve ports, ptrs, or usernames
    my $args={
             ports=>0,
             ptrs=>0,
             uid_resolve=>0,
             };
    eval{ @objects = &lsof_to_nc_objects($args); };

This runs 'lsof -i UDP -i TCP -n -l -P' and parses the output returns a array of Net::Connection objects. If a non-zero exit code is returned, it will die.

There is one optional argument and that is hash reference that can take several possible keys.

args hash

ports

Attempt to resolve the port names.

Defaults to 1.

ptrs

Attempt to resolve the PTRs.

Defaults to 1.

uid_resolve

Attempt to resolve the UID to a username.

Defaults to 1.

proc_info

Add assorted process information to the objects.

Defaults to 1.

    my @objects;
    eval{ @objects = &lsof_to_nc_objects( $args ); };

Zane C. Bowers-Hadley, "<vvelox at vvelox.net>"

Please report any bugs or feature requests to "bug-net-connection-lsof at rt.cpan.org", or through the web interface at <https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Connection-lsof>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc Net::Connection::lsof

You can also look for information at:

  • RT: CPAN's request tracker (report bugs here)

    <https://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Connection-lsof>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/Net-Connection-lsof>

  • CPAN Ratings

    <https://cpanratings.perl.org/d/Net-Connection-lsof>

  • Search CPAN

    <https://metacpan.org/release/Net-Connection-lsof>

  • Git Repo

    <https://gitea.eesdp.org/vvelox/Net-Connection-lsof>

This software is Copyright (c) 2019 by Zane C. Bowers-Hadley.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
2019-08-15 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.