Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Lawrence D'Oliveiro
In message , Peng Yu wrote: > As far as I know, linux doesn't support a system level way to figure > out all the symbolic links point to a give file. Do you know of a system that does? > I'm thinking of writing a daemon program which will build a database > on all the symbolic links that point

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Aahz
In article , Peng Yu 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 proces

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Falcolas
On Oct 23, 1:38 pm, Falcolas wrote: > On Oct 23, 1:25 pm, Peng Yu wrote: > > > > > As far as I know, linux doesn't support a system level way to figure > > out all the symbolic links point to a give file. I could do a system > > wide search to look for any symbolic link that point to the file tha

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Grant Edwards
On 2009-10-23, Peng Yu wrote: > [...] > > I'm thinking of writing a daemon program [...] > > 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? http://www.google.com/search?q=python+daemon --

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Falcolas
On Oct 23, 1:25 pm, Peng Yu wrote: > As far as I know, linux doesn't support a system level way to figure > out all the symbolic links point to a give file. I could do a system > wide search to look for any symbolic link that point to the file that > I am interested in. But this will be too slow w

How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Peng Yu
As far as I know, linux doesn't support a system level way to figure out all the symbolic links point to a give file. I could do a system wide search to look for any symbolic link that point to the file that I am interested in. But this will be too slow when there are many files in the systems. I'