I'd like to write a program which checks a file's status.
If no processes update/modify it, I can then lock it and
read the data and load it into the shared memory. So, my
. how could I know if there is any other process accessing
it or not?
. how could I lock it?
. say that I could lock the file. what will happen when
someone tries to update it using ftp/rcp/copy? Will the
new data be lost?
Appreciate your help!