cancel
Showing results for 
Search instead for 
Did you mean: 

File deletion

narayanskulkarni
Occasional Visitor

File deletion

We have two HP UX systems.
One of the file systems of Machine1 is mounted on Machine2.
We have some Java classes using file.delete method to clean up the left out files.
Whenever these classes are run, sometimes the files get deleted properly and sometimes they don't. We are not getting why the files are not getting deleted.

Additional info:
* The files are used only for reading. So, there is no chance for any process to lock them for writing.
* Proper directory and file permissions exist.
* No ERROR messages in the logs.
* No connectivity issues.

Any problem with NFS file system??
Any patches available?
Please help.
3 REPLIES
Dennis Handly
Acclaimed Contributor

Re: File deletion

That's strange, either it should work on not.
You could use tusc on the failing case and see why it fails.

Are these classes using absolute path or relative? If the latter, could the CWD some how being changed to something unexpected for the delete?
narayanskulkarni
Occasional Visitor

Re: File deletion

Hi Dennis,

Yes, even we wondered when it was only with some files and and not ALL. But this is the existing situation.

We do not have any error/warning messages in any of the logs.
The classes use absolute path to locate the files.
Dennis Handly
Acclaimed Contributor

Re: File deletion

>even we wondered when it was only with some files and and not ALL.

Is the difference due to different directories or all in one directory?

>We do not have any error/warning messages in any of the logs.

tusc would help, if you can duplicate the problem.