nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Script to track the changes made to a file

This is a discussion on Script to track the changes made to a file within the Shell scripting forums, part of the Development/Scripting category; Hello All, Please help me with below, I want to track changes made to a file and send the change ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2009, 10:05 PM
Junior Member
User
 
Join Date: Jun 2009
OS: RHEL
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
hariharan.nb is on a distinguished road
Post Script to track the changes made to a file

Hello All,
Please help me with below,

I want to track changes made to a file and send the change made in the file through email

For eg. user's crontab file. I want to track this file and whenever user appends or modifies the file, i want the changes to be emailed to select emails.
Please help !!!
Reply With Quote
  #2 (permalink)  
Old 06-11-2009, 04:30 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,635
Thanks: 11
Thanked 232 Times in 172 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to turn on account auditing and no need to write a shell script. It can provide all the reports for you, see:

  1. Linux audit files to see who made changes to a file
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Shell Script To Outputs File Permissions of Most Recently Modified File glen_4455 Shell scripting 1 08-25-2008 03:39 PM
shell script to search specific file from txt file inside zip file and extract it aasif.shaikh Shell scripting 2 05-31-2008 07:44 PM
Linux Copy an audio cd / track to hard disk Peterrodg Getting started tutorials 2 01-12-2008 11:50 PM
Track last reboot / shutdown time on linux server sweta Linux software 1 07-16-2007 07:20 AM
track changing in docs file zafar466 Windows Xp/2000/2003 server administration 0 03-12-2007 10:53 PM


All times are GMT +5.5. The time now is 10:46 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38