AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  File/Directory change notification tools/API in AIX

    Posted Mon March 29, 2010 05:56 AM

    Originally posted by: ravikumarv


    Hello Friends,

    I'm new AIX

    Is there way or some tools/API exists in AIX that will notfies file/directory change.
    I'm asking API/tool similar to 'inotify in Linux
    #AIX-Forum


  • 2.  Re: File/Directory change notification tools/API in AIX

    Posted Tue March 30, 2010 05:59 PM

    Originally posted by: SystemAdmin


    Hi,

    I am afraid that I have never used "inotify", so I cannot say that I know the tool. However, you may find that the "tcbck" program is what you need. Tcbck checks that various parts of the operating system have not been compromised or changed; but you can also add you own specific file and directory requirements to the list. The errors/notifications detected by tcbck are written to stderr. See the man pages for details.

    It would not be too difficult to write an e-mail program based on tcbck to do what you are requesting. We have a security suite which uses a home-grown version to ensure that our systems are secure.

    Regards, George
    #AIX-Forum


  • 3.  Re: File/Directory change notification tools/API in AIX

    Posted Wed March 31, 2010 08:58 AM

    Originally posted by: ravikumarv


    Thank you Spook for update on tcbck.

    I can not use tcbck for my purpose. I need to notify from a program when some files/directories changed.
    The similar API in Windows is ReadDirectoryChangesW() and in Linux inotify API.

    Could somebody please let me is there any kind of API like ReadDirectoryChangesW()(In Windows) inotify API (In Linux)
    #AIX-Forum


  • 4.  Re: File/Directory change notification tools/API in AIX

    Posted Wed March 31, 2010 09:17 AM

    Originally posted by: j.gann


    inotify to my understanding has a desktop audience in mind (music folders, digicam sync folder and the like). you will not find this in aix.

    but why not check the modification date of the directory yourself (programmatically)?

    or, if you're afraid of polling use the audit subsystem to give you a notification when said object is modified. (seems like overkill to me, but decide for yourself)

    if you want to get very serious about it consider commercial scheduling or message queueing software. these typically include this functionality.

    many ways to go...
    #AIX-Forum


  • 5.  Re: File/Directory change notification tools/API in AIX

    Posted Thu April 01, 2010 12:11 AM

    Originally posted by: ravikumarv


    I need to watch thousands of files and directories for modification or addition/deletion of files in the directory. So I need a mechanism which watches given set of files/directories and notifies immediately whenever a file/directory change happens. The inotify (In Linux) and ReaddirectoryChangesW()(WIndows API) do the the same. For these API/tools just provide the watch list and they inotify the user through API.

    Checking modification times or audit are also the ways, but i need better ways which I mentioned above.

    I can not keep on check modification of times of thousand files files/directories with some sleep intervals. audit notifies but it is a command line tools and I think need to check it's logs.

    Regards,
    Ravikumar
    #AIX-Forum


  • 6.  Re: File/Directory change notification tools/API in AIX

    Posted Wed March 31, 2010 06:06 AM

    Originally posted by: wordolf357


    I am a super fan of iPhone but I am not tolerable to buy ringtones on iTunes. Fortunatly, my bosom friend, who is also a fan of iPhone, shares with me a marvellous iPhone Ringtone Maker. From now on, I am able to make ringtone using my own favorite songs from located resourse. I would like to share it with you and I am quite sure that it can give you a hand.
    iPhone Ringtone Maker for Mac//iPhone Ringtone Converter//iPhone Ringtone Creator//M4R Converter
    #AIX-Forum