Re: File Handling



munish.nr@xxxxxxxxx wrote:
Hi,

I am developing an application on Linux environment. My application is
opening a file(say X) and read some configurations parameters from it
and closing the file X and doing some functional processing. In the
meantime if user modified/change the file X , then my application
should reopen the file X and agan reading the parameters and working
furhter.

now the problem how my application will come to know that the file has
been modified or chaged.

Does nybody knows how i can make my application know that teh
particular file has beem changed.

I will really appreciate an email with comments form you!

Thanks,
Munish Nayyar

"man inotify" will tell you how to get notification with recent Linux
kernels.

Robert
.



Relevant Pages

  • Re: FIle Handling
    ... opening a fileand read some configurations parameters from it ... and closing the file X and doing some functional processing. ... meantime if user modified/change the file X, ...
    (comp.os.linux.development.apps)
  • Re: FIle Handling
    ... opening a fileand read some configurations parameters from it ... and closing the file X and doing some functional processing. ... meantime if user modified/change the file X, ...
    (comp.os.linux.development.system)
  • FIle Handling
    ... opening a fileand read some configurations parameters from it ... and closing the file X and doing some functional processing. ... meantime if user modified/change the file X, ...
    (comp.os.linux.development.apps)
  • FIle Handling
    ... opening a fileand read some configurations parameters from it ... and closing the file X and doing some functional processing. ... meantime if user modified/change the file X, ...
    (comp.os.linux.development.system)
  • File Handling
    ... opening a fileand read some configurations parameters from it ... and closing the file X and doing some functional processing. ... meantime if user modified/change the file X, ...
    (comp.unix.programmer)