Hello all this is my first post on here. I was wondering if there is any way to tell what programs or process's are access a certain file. This is just a linux text file. Thanks
Printable View
Hello all this is my first post on here. I was wondering if there is any way to tell what programs or process's are access a certain file. This is just a linux text file. Thanks
What do you mean? Do you want to gather information about which processes currently use a file? This can be achieved with lsof or the more lightweight fuser.
Yes what process access it and if possible what time etc. What is happening at work there is a file and a BMC portal patrol agent program sends a warning saying the file cant be accessed and it is at random times, so I think something else is accessing it at the same time. thanks
You want fuser.
ciao,Quote:
FUSER(1) User Commands FUSER(1)
NAME
fuser - identify processes using files or sockets
jdk