Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-29-2004, 12:31 AM   #1
Registered: Dec 2004
Posts: 69

Rep: Reputation: 15
Question Protect File: how to monitor directory effectively?

Hi all,

I have difficulty in Real-time File Protection under Linux.

I consult some documents aout "FAM" and "inotify", which are used for Watching File Changing.But they can only get File Changing Event in a directory, can not get it in the subdirectory--I mean I have to monitor each subdirectory myself, and stop monitoring them if they have been deleted.

Um,I save all directories in a "tree" Data Structure, e.g. if a dirctory P that has subdirectories C1,C2 has been deleted, I stop monitoring P, C1 and C2, then if they three have been restored successfully, I start monitoring them again.It does work if file changing is not frequent.

The problem is that it's not stable if files change frequently, I don't know how to solve it, but I think it may be related to stopping and starting monitoring directories continually.

Will you please make a suggestion for me?
Old 12-30-2004, 04:02 AM   #2
Registered: Dec 2004
Posts: 69

Original Poster
Rep: Reputation: 15
um, I'm puzzled..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect a directory aquatux SUSE / openSUSE 6 08-02-2005 12:56 AM
Need to protect a directory wayloud *BSD 1 10-13-2004 05:02 PM
How to password protect a web directory abdulber Linux - Software 1 01-28-2004 12:34 AM
Password protect a directory Stephanie Linux - General 6 03-26-2002 03:58 PM
using apache to protect a directory Syncrm Linux - Networking 0 08-31-2001 05:54 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration