Server IP : 127.0.0.2 / Your IP : 3.21.35.68 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/lsof/examples/ |
Upload File : |
The scripts in this subdirectory give examples of using lsof's field output. big_brother.perl5 Perl 5 script, contributed by Lionel Cons <Lionel.Cons@cern.ch>, that watches for new network connections. count_pf.perl Perl 4 or 5 script that runs lsof in repeat mode, gathering process, file, TCP, and UDP counts count_pf.perl5 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.perl5 Perl 5 script, contributed by Kapil Chowksey <kchowksey@hss.hns.com> that implements an identd server. (Thanks, Kapil!) idrlogin.perl Perl 4 script that identifies the shell and network source address of users who have logged on from remote locations via rlogin, ssh, or telnet idrlogin.perl5 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.perl5 Perl 5 script that prints lsof's NUL terminated field output list_fields.awk AWK script that prints lsof's field output list_fields.perl Perl 4 or 5 script that prints lsof's field output shared.perl5 Perl 5 script that uses +ffn output to produce a list of file descriptors or files shared by processes. sort_res.perl5 Perl 5 script, contributed by Fabian Frederick <fabian.frederick@gmx.fr>, to display top resource usage. watch_a_file.perl 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 <damercer@mmm.com> 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