File access tracing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File access tracing
# 1  
Old 01-19-2010
File access tracing

Hello..

Is there anyway to check if some processes are reading one file?

Id use inotify, but my kernel is 2.6.9, so it doesnt work.

-k-
# 2  
Old 01-19-2010
Try the "fuser" command.
# 3  
Old 01-19-2010
Hello..

well, I tried lsof, lstat, fuser but maybe I didnt find proper options for them to follow the file "realtime".

-k-
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Activity Tracing - Using sendmail.

uname -a output Linux server.domain.com 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux At our company, we have hundreds of employees that access this server for reporting purposes. However, someone was familiar enough with sendmail and used it to send an... (8 Replies)
Discussion started by: abvh
8 Replies

2. Shell Programming and Scripting

Tracing a function call

Hi I am hoping someone can explain this to me as I am struggling to understand it. I had a problem today with needing to trace a ksh script that was dotting in a function that was writing to stdout. The problem was it was being run in a sub shell and the output was being parsed by the... (1 Reply)
Discussion started by: steadyonabix
1 Replies

3. UNIX for Dummies Questions & Answers

Tracing file installation

Hello, my first post here. I have a script to install a program which runs the user through installation interface offering several options. What I want to do is to trace the possible mistakes during the installation and send them to a logfile. I.e if a user interrupts the installation, I would... (2 Replies)
Discussion started by: tetreb
2 Replies

4. Programming

tracing function with Graphviz

I was searching for a tool to trace the function flow to help me understand the code. I came across the article "visualize function calls with graphviz" by Tim Jones. Visualize function calls with Graphviz I was able to obtain the flow diagram for simple programs and also for the example... (0 Replies)
Discussion started by: cjjoy
0 Replies

5. UNIX for Dummies Questions & Answers

Script for tracing row in a file

Hi! Sorry for stupid questions, I'm quite unfamiliar win *nix systems I have a script which generates the file which looks like that: 12.11.2008 06.01 0 0 0 2 2 0 0 0 12.11.2008 06.02 0 0 0 0 0 0 0 0... (3 Replies)
Discussion started by: consta.v
3 Replies

6. Shell Programming and Scripting

tracing in linux

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (2 Replies)
Discussion started by: shary
2 Replies

7. Linux

tracing

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies

8. UNIX for Advanced & Expert Users

Tracing file modifications

Hello all! Is there a way or a utility to trace any kind of file changes in a particular directory on any UNIX machine? The purpose is that in Unix, there are multiple ways of opening and making changes to a file. But internally, there must be something common (a single pipe, etc.) that is... (3 Replies)
Discussion started by: gupta_ca
3 Replies

9. HP-UX

tracing a user's session

hi, does anyone knows how to trace a user session on a unix system: i want to log these things 1- login 2- date of starting session 3- date of closing session i've tryed who and last but they don't give closing time of session regards hmaiida (2 Replies)
Discussion started by: hmaiida
2 Replies

10. UNIX for Advanced & Expert Users

Tracing a terminal

Hi you all, any of you know how to monitor what is going on in another terminal? I mean if somebody will install an application on my server remotely and I want to "watch" what he is doing. I remember that some one use the "audit" command but now I just can't remember. thanx.:mad: (2 Replies)
Discussion started by: alex blanco
2 Replies
Login or Register to Ask a Question