incrontab not working

From: prashant <prashant_at_bluebarracuda.com>
Date: Wed, 15 Aug 2007 13:39:07 +0100

HI all,
I am using inotify which is working fine, see below

----------------------------------------------------------------------------------------
root_at_slack12:/etc/rc.d# inotifywatch /var/log/messages
Establishing watches...
Finished establishing watches, now collecting statistics.
total modify filename
2 2 /var/log/messages
root_at_slack12:/etc/rc.d# inotifywait /var/log/messages
Setting up watches.
Watches established.
/var/log/messages MODIFY
root_at_slack12:/etc/rc.d#
----------------------------------------------------------------------------------------

I am trying to use incrond to run a command when a directory is being
modified

incrontd is installed and started

----------------------------------------------------------------------------------------
root_at_slack12:/etc/rc.d# ps -ef | grep incrond
root 4016 1 0 12:35 ? 00:00:00 incrond
root 4130 4020 0 13:26 pts/0 00:00:00 grep incrond
root_at_slack12:/etc/rc.d#
----------------------------------------------------------------------------------------

entry is done for monitoring /var/log/messages and run a script /root/test
----------------------------------------------------------------------------------------
root_at_slack12:~# incrontab -l
/var/log/messages IN_ACCESS /root/test $@/$#
----------------------------------------------------------------------------------------

But still nothing happens..
Is there anything missing??

Please help
Many thanks

Prashant
Received on Wed Aug 15 2007 - 14:40:02 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST