Barry Cunney
asked on
Use Unix truss command to monitor all operations and activity on a file
Hi Guys,
Can someone please give me an example of how to use the truss command to monitor all operations on a particular file.
I know there is an -r switch and reference to a file descriptor - but sure if this is simply a name of a file which you have to pass in or something different
Cheers
B Cunney
Can someone please give me an example of how to use the truss command to monitor all operations on a particular file.
I know there is an -r switch and reference to a file descriptor - but sure if this is simply a name of a file which you have to pass in or something different
Cheers
B Cunney
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could probably write a perl script that monitors the output of truss and figures out which lines refer to a file of a particular name...
ASKER
I thought that there might be some trick one could use to get the truss command just to trace operations on one file