How to write a daemon program to monitor symbolic links?

Aahz aahz at pythoncraft.com
Sat Oct 24 02:57:21 CEST 2009


In article <mailman.1942.1256325954.2807.python-list at python.org>,
Peng Yu  <pengyu.ut at gmail.com> wrote:
>
>I'm thinking of writing a daemon program which will build a database
>on all the symbolic links that point to any files. Later on, whenever
>I change or remove any file or symbolic link, I'll will notify the
>daemon process the changes. By keeping this daemon process running, I
>can quickly figure out what symbolic links are pointing to any give
>file.
>
>But I have never make a daemon program like this in python. Could
>somebody point me what packages I need in order to make a daemon
>process like this? Thank you!

inotify
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In the end, outside of spy agencies, people are far too trusting and
willing to help."  --Ira Winkler



More information about the Python-list mailing list