LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 12-28-2004, 11:31 PM   #1
iclinux
Member
 
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, 03:02 AM   #2
iclinux
Member
 
Registered: Dec 2004
Posts: 69

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect a directory aquatux Suse/Novell 6 08-01-2005 11:56 PM
Need to protect a directory wayloud *BSD 1 10-13-2004 04:02 PM
How to password protect a web directory abdulber Linux - Software 1 01-27-2004 11:34 PM
Password protect a directory Stephanie Linux - General 6 03-26-2002 02:58 PM
using apache to protect a directory Syncrm Linux - Networking 0 08-31-2001 04:54 AM


All times are GMT -5. The time now is 02:16 PM.

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