Hi,
I have a program that gets called from the front end of my application. Actually it creates some temporary files and uses them and deletes them at last. But sometimes, say once in 6 times, some of these temporary files are getting truncated in the middle and because of this my program is behaving irregularly. My application runs on AIX.
I am not sure -
1) whether some other process is truncating the files, or
2) My program itself is writing the files incompletely.
If I restart the same operation again, I am able to proceede correctly. This kind of trucation of files is happening only some times, say once in 6 times.
I want to monitor these temporary files from creation to the deletion - like what processes are writing to them, using them, truncating them etc.
Can you please tell me, is there a way to do this task? Or, any other better way of solving this problem is possible?
Thanks,
Venkat.