S
shilpa.saraogi
Heya all,
How do I tell, prgrammatically, if a file is opened for read/write by
some other process? In unix .. of course.
My program needs to open files and work on it, and I want it to make
sure that the file is not being written to (e.g. by scp, cp, mv etc)
before I attampt to open it. Is there any function to see the status of
the file ? Using/implementing locking mechanism is out of the question.
If not provided by the language, is there anything provided by the Unix
operatins system ?
Shilpa
How do I tell, prgrammatically, if a file is opened for read/write by
some other process? In unix .. of course.
My program needs to open files and work on it, and I want it to make
sure that the file is not being written to (e.g. by scp, cp, mv etc)
before I attampt to open it. Is there any function to see the status of
the file ? Using/implementing locking mechanism is out of the question.
If not provided by the language, is there anything provided by the Unix
operatins system ?
Shilpa