D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] monitoring a file

 

James Wonnacott wrote:
I am trying to determine the best way to monitor changes to a directory on
my server.
As soon as the diectory contents are updated I want another event to take
place.
I have a file alteration monitor called fam (not suprisingly) on my
mandrake distro but I'm not too sure how to talk to it!!!! (the man file
is a bit obscure)

Any suggestions please.

Thanks in advance

James

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html



Slight variation on this. I was planning to write up a script that, running daily, would be able to report to me which files had been updated that day, or last 24h to be exact. Basically, this is to monitor a whole set of websites for unwanted changes.

I was planning to use "find" to get the actual files and then I want to be able to filter the report to ignore files that I know it is ok for them to change.

Does anyone know of any script that could do this? It would save me some time. I would rather run a crontab script based solution because of our limited permissions on the webserver and for simplicity.

A sysadmin friend of mine uses runs a control versioning status check daily to restore any files that are not as they are supposed to be. Ideally I would go do this route but I work with designers and arty types who can't handle this sort of control.

W

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html