Author: michayu
Date: 27-12-01 18:56
From : Mr Michel AGOVIC, Paris, France
Mail : michayu@yahoo.com
Date : 26 Dec 2001
Subject : Capturing the signals from UNIX kernel
Here is the description of the problem that I would like to resolve.
Is there any way to capture the signals whenever UNIX file-system
has changed? Here are the possibilities that I am interesting about:
(1) Creating of a file
(2) Moving or renaming of a file
(3) Modification of the file-content
(4) Deleting of a file
I am interested if there is some way to get a real-time information
about these 4 actions made on a UNIX file-system? I suppose thet kernel
could send a signal whenever some of these actions has been done. Is
there anyone that has any idea about that? I would like to write a C
program on UNIX that will be a kind of a WATCHDOG, always active, and
that would informe us about any modification of a file-system. This
program would catch a signal in real-time, and write a line containing
the file pathname, type of modification and a date+time.
|
|