| Server IP : 104.21.93.65 / Your IP : 104.23.197.33 Web Server : Apache System : Linux server.localhost.com 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64 User : pahana ( 1029) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/doc/lsof/examples/ |
Upload File : |
The scripts in this subdirectory give examples of using lsof's field output. big_brother.pl Perl 5 script, contributed by Lionel Cons <[email protected]>, that watches for new network connections. count_pf.pl Perl 5 script that runs lsof in repeat mode, gathering process, file, TCP, and UDP counts This script uses NUL terminated lsof field output. identd.pl Perl 5 script, contributed by Kapil Chowksey <[email protected]> that implements an identd server. (Thanks, Kapil!) idrlogin.pl Perl 5 script that identifies the shell and network source address of users who have logged on from remote locations via rlogin, ssh, or telnet list_NULf.pl Perl 5 script that prints lsof's NUL terminated field output list_fields.awk AWK script that prints lsof's field output list_fields.pl Perl 4 or 5 script that prints lsof's field output shared.pl Perl 5 script that uses +ffn output to produce a list of file descriptors or files shared by processes. sort_res.pl Perl 5 script, contributed by Fabian Frederick <[email protected]>, to display top resource usage. watch_a_file.pl Perl 4 or 5 script that watches the use of a named file xusers.awk an AWK (actually NAWK) script, written by Dan A. Mercer <[email protected]> that, "Prints list of users and applications signed on X workstations." This script was developed and is used with lsof on HP-UX systems. Vic Abell December 28, 1998