Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am facing some different behaviour using inotify for notifying file changes. I added file notification for some file in /tmp directory with IN_MODIFY flag. when i modified contents ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    11

    File notification : inotify_init

    Hi,

    I am facing some different behaviour using inotify for notifying file changes.

    I added file notification for some file in /tmp directory with IN_MODIFY flag.
    when i modified contents in this file, i am able to read the notifications of this change and the mask value for this notification is IN_MODIFY(2).

    If i use same file with same source code in other directory(ex : /home), iam getting mask value as IN_IGNORED flag(3276. After this any modifications to the file, i am not getting any notifications.

    This is some strange behaviour.

    Please let me know if any body have idea.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    Though I'm not sure about exact error. May be check out this Monitor Linux file system events with inotify and sample application might help you out of the issue.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...