Always wanted one of those! But never enough to write it myself...
Jon
----- Original Message -----
From: "Andrew Eager" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 4:22 AM
Subject: [SLUG] Finding open files on the system
> At the last meeting, it was asked:
>
> " If the disk is spinning madly is there any way to determine which
> process is causing the activity ?"
>
> A bloody good question that I have asked myself many times. I used to
> have a utility called 'fopen' under QNX but not under linux.
>
> If anyone is interested, I have written a utility called 'fopen' which
> does the following
>
> a) Prints the PID, Process name & Currently open files for that PID
> b) as above but for sockets
> c) as above but for pipes.
>
> It also prints either the size of the file (so you can see it growing)
> or optionally, the time since last access/change/modification.
>
> Example:
>
> PID PROCESS TIME FILE/RESOURCE
> 1161 crond 00:05:18 /var/log/cron
>
> ..... etc
>
> If anyone interested, let me know.
>
> Andrew E.
>
>
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug