| 1 |
The scripts in this subdirectory give examples of using lsof's |
| 2 |
field output. |
| 3 |
|
| 4 |
big_brother.pl Perl 5 script, contributed by Lionel Cons |
| 5 |
<[email protected]>, that watches for new |
| 6 |
network connections. |
| 7 |
|
| 8 |
count_pf.pl Perl 5 script that runs lsof in repeat mode, |
| 9 |
gathering process, file, TCP, and UDP counts |
| 10 |
|
| 11 |
This script uses NUL terminated lsof field |
| 12 |
output. |
| 13 |
|
| 14 |
identd.pl Perl 5 script, contributed by Kapil Chowksey |
| 15 |
<[email protected]> that implements an |
| 16 |
identd server. (Thanks, Kapil!) |
| 17 |
|
| 18 |
idrlogin.pl Perl 5 script that identifies the shell and |
| 19 |
network source address of users who have logged |
| 20 |
on from remote locations via rlogin, ssh, or |
| 21 |
telnet |
| 22 |
|
| 23 |
list_NULf.pl Perl 5 script that prints lsof's NUL terminated |
| 24 |
field output |
| 25 |
|
| 26 |
list_fields.awk AWK script that prints lsof's field output |
| 27 |
|
| 28 |
list_fields.pl Perl 4 or 5 script that prints lsof's field |
| 29 |
output |
| 30 |
|
| 31 |
shared.pl Perl 5 script that uses +ffn output to produce |
| 32 |
a list of file descriptors or files shared by |
| 33 |
processes. |
| 34 |
|
| 35 |
sort_res.pl Perl 5 script, contributed by Fabian Frederick |
| 36 |
<[email protected]>, to display top resource |
| 37 |
usage. |
| 38 |
|
| 39 |
watch_a_file.pl Perl 4 or 5 script that watches the use of a |
| 40 |
named file |
| 41 |
|
| 42 |
xusers.awk an AWK (actually NAWK) script, written by |
| 43 |
Dan A. Mercer <[email protected]> that, "Prints |
| 44 |
list of users and applications signed on X |
| 45 |
workstations." This script was developed |
| 46 |
and is used with lsof on HP-UX systems. |
| 47 |
|
| 48 |
Vic Abell |
| 49 |
December 28, 1998 |