<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" dir="ltr" text="#000000">
<p style="margin-top: 0cm; margin-bottom: 0cm;" dir="ltr"><br>
</p>
<br>
dan wrote:
<blockquote cite="mid42A74B10.3050701@hostinthebox.net" type="cite"
 dir="ltr">Andy Pieters wrote:
  <br>
  <blockquote type="cite">Hi all
    <br>
    <br>
Those of you who have had the punishment of maintaining workstations
with m$ on it might have heard, or even used filemon (from
sysinternals).  It hooks itself on the kernel and keeps an eye on what
application accesses what file.
    <br>
    <br>
Is anyone aware of such an utlity for Linux?  No fancy gui needed,
plain old cli will suffice.
    <br>
    <br>
Basically what I want to do is launch the app, then run another program
and see what files are being opened by that program.
    <br>
    <br>
    <br>
Kind regards
    <br>
    <br>
    <br>
Andy
    <br>
    <br>
    <br>
  </blockquote>
  <br>
ANdy -
  <br>
  <br>
I use 'lsof' quite often, and it does the same thing, almost, as
filemon.  It simply lists open files.  I'm not sure if it is capable of
doing a continuous list, however - anyone else know?
  <br>
  <br>
Sorry if this email wasn't completely helpful, but it will at least
give you a starting point.
  <br>
  <br>
Thanks
  <br>
-dant
  <br>
  <br>
</blockquote>
lsof is the tool you need,<br>
you can also do <br>
ls /proc/<PROCESS-ID>/fd<br>
and get a list of all files/sockets opened by this process.<br>
</body>
</html>