Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.


Im looking for a tools (script) for monitoring my systems for any changes on any files by using vi command.
For example: one dba open alert.log with vi and modify it and save.. i need to trace these changes.
Is it possible?
Thank you in advance

share|improve this question

1 Answer 1

up vote 1 down vote accepted

yea it's possible just not with vi... I mean check inotify tools ; with those you can monitor for file changes, moving , deleting , creation it wont tell you with which tool action was made but it will alert that something had happened.

if you want to track only actions with vi I suggest you make a wrapper for vi that will alert of any usage/invocation say make sum of file before edit; after edit; if it was changed raise alert.

share|improve this answer
    
@Spolijar: Thank you for your answer.. –  AlBouazizi Mar 7 '12 at 8:03
    
you are welcome Sir –  Hrvoje Špoljar Mar 7 '12 at 8:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.