Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Linux C API to receive file update notification
Results 1 to 4 of 4

Thread: Linux C API to receive file update notification

Hybrid View

  1. #1

    Linux C API to receive file update notification

    Is there any C API using which my process can register a callback with the OS for informing my process whenever a file is updated (i.e., the time stamp of the file undergoes a change).

    I have some experience of working in Windows OS and there is some facility available there.

    In linux I was not getting such an API. What I am now thinking of doing is to run a thread which monitors the file timestamp with a periodicity. Though this would serve my purpose but it is not a very performant solution. Besides it is also not possible to continuously monitor and so instantaneous notification upon update is not possible.

    If anyone knows of some direct and better way pls help.

  2. #2

    Re: Linux C API to receive file update notification

    My question would be how often do you need an update? As soon as the file is updated or on the hour or what?
    If you give a man a fire he'll be warm, if you light the man on fire he'll be warm for life.

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    304

    Re: Linux C API to receive file update notification

    You say you have some experience working in Windows. If you tell us what facility you use on Windows, we might be able to find an equivalent for you. I have experience with both Windows and Linux programming, but am not familiar with any API that handles the scenario you've mentioned on either platform.

    Let us know what you use and we'll see what we can come up with. (I do have one possible work-around, but it's pure theory at this point and I don't want to recommend it until other possible resources are tried first.)

  4. #4

    Re: Linux C API to receive file update notification

    Inotify:
    http://www.kernel.org/pub/linux/kern...e/rml/inotify/

    Might want to take a look at something like beagle, that uses it

    http://beaglewiki.org
    whatdoyougetwhenyoumultiplysixbynine??

Similar Threads

  1. Outlook 2003 won't send/receive AOL
    By asher813 in forum Windows - General Topics
    Replies: 0
    Last Post: 10-22-2005, 10:59 PM
  2. Microsoft Security Advisory Notification
    By RickDev in forum Windows - General Topics
    Replies: 0
    Last Post: 07-18-2005, 04:25 PM
  3. Can't receive email
    By countach44 in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 07-07-2005, 08:35 PM
  4. Email Notification
    By vwgtiturbo in forum Announcements and Suggestions
    Replies: 2
    Last Post: 01-26-2004, 05:59 AM
  5. Linux Update withholds Security Details
    By JimH in forum General Chat
    Replies: 6
    Last Post: 11-01-2001, 08:58 PM

Bookmarks

Posting Permissions

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