SUMMARY: Debug tool

From: Martin Paul (martin@par.univie.ac.at)
Date: Tue Jun 15 1993 - 19:13:18 CDT


Hello everyone,

Sorry for the delay of this summary. At first, my original posting:

>I'm in desperate search of a tool I heard of a little ago. I don't
>know the name of it, I only know that it prints all the filenames
>that are accessed by a running program. So if you want to check
>which files are used by a program you start this tool and all the
>files that are opened by the running program are logged.
>
>Please help me, I just need the name and maybe the ftp-site.

I got a lot of answers, and here they are:

1) The tool I meant is called ofiles. Half of the people who answered
   said that I should try that one. I have not tried it yet - reasons
   are below - but it seems to be a nice tool, though not what I really
   needed.

2) Some people suggested lsof (List open files). It seems to work in the
   same manner as ofiles.

And the winner is...

3) trace: This program shows all the system calls that a program makes.
   Just start trace <command> <options>. All the system calls with arguments
   and return values are printed on stderr. The best of all is that this tool
   comes with the SunOS-distribution, just try man trace. Be careful, if you
   want the output into a file you have to use >& (csh) or 2> (sh, I think).
   If you want to see all the files that are used, just grep the keywords
   "open" or "access" from the file.

Many thanks to the following people:

cxh@arsenic.berkeley.edu
david@capmkt.com
jiml@uts.amdahl.com
mikem@ll.mit.edu
hkatz@nucmed.med.nyu.edu
strombrg@hydra.acs.uci.edu
adam%bwnmr4@harvard.harvard.edu
sitongia@ozzel.hao.ucar.edu
ras@unipress.com
frankm@shadow.cna.tek.com
lem@shaddam.usb.ve
philip@haas.berkeley.edu
trdlnk!mike@relay.eu.net
pauline@uniq.com.au
kevin@uniq.com.au
eckhardt@ts.go.dlr.de
hbg@vattenfall.se
danny@ews7.dseg.ti.com
fuat@watsun.cc.columbia.edu
frank@darwin.sfbr.org
rtaylor@ait.nrl.navy.mil
glenn@uniq.com.au
louis@andataco.com
rwolf@dretor.dciem.dnd.ca
anderson@neon.mitre.org - Thanx for pushing me to finally post this summary.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:55 CDT