script to monitor files in a directory and sending the alert


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting script to monitor files in a directory and sending the alert
# 1  
Old 11-26-2008
Error script to monitor files in a directory and sending the alert

Hi All,

We are having important config files in an directory which was accessable by all
/auto/config/Testbed/>ls
config1.intial
config2.intial
config3.inital

often we find that some of the lines are missing in config files, we doubt if some one is removing.

I would like to write a shell script to monitor all the files, and it should alert via mail if some one altered the content of the config file. Mail should inform who has altered the content and diff of the content.

Your comments are highly appreciated.

Thanks,
Parkkavan(shell scripter)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending Multipes files as attachents in directory

When i run the below command in Unix it works echo|mailx -s "Subject" $( printf -- '-a %q ' /Directory/*.* ) mail_address < /directory/mail_body.txt But when the same command is run in AIX Platform I get invalid -a error. Could you please help on this Please use CODE tags as... (4 Replies)
Discussion started by: arunkesi
4 Replies

2. Shell Programming and Scripting

File monitor and alert

whats is the best way to monitor file if it has not updated in last 24 hours. example /var/logmessages in linux , /var/adm/messaged in solaris and alert to email . find with mtime , perl file stat, anyone have any script examples of something better ? (3 Replies)
Discussion started by: nixguynj
3 Replies

3. Shell Programming and Scripting

Bash script monitor directory and subdirectories for new pdfs

I need bash script that monitor folders for new pdf files and create xml file for rss feed with newest files on the list. I have some script, but it reports errors. #!/bin/bash SYSDIR="/var/www/html/Intranet" HTTPLINK="http://TYPE.IP.ADDRESS.HERE/pdfs" FEEDTITLE="Najnoviji dokumenti na... (20 Replies)
Discussion started by: markus1981
20 Replies

4. Programming

GFORTRAN sending .o files in separate directory

I am using gfortran and want to send .o files in separate directory. Currently I have the following in a bash script. The .mod files are handled ok, but the .o files are still created in the same directory as the source code fsrc="newunit.f08 math.f08 tString.f08 prout.f08 prary.f08... (1 Reply)
Discussion started by: kristinu
1 Replies

5. Shell Programming and Scripting

Script to monitor directory size of specific users

Hi, i am new to shell scripts, i need to write a script that can monitor size of directory of specific users. Please help. Thanks, Nitin (2 Replies)
Discussion started by: nicksrulz
2 Replies

6. Shell Programming and Scripting

howto monitor a directory for files then sftp them

Morning all I hope I have put this in the correct forum. I have a requirement to monitor a directory on a server for files being sftp'ed in and then to sftp them of to another server. The issues I have though of are making sure the files have completely transferred onto the server before they... (6 Replies)
Discussion started by: ltodd2
6 Replies

7. Linux

Memory monitoring and sending alert mail to users in network using shell script

i m workiing on a shell script which may monitors network memory and send alert to user if it increase a threshold (1 Reply)
Discussion started by: navdeep5673
1 Replies

8. Shell Programming and Scripting

Script to send an alert if a file is present in a directory for 10 min

hi, A script which look into a directory and send an alert via a mail. If there is any file exisiting in a directory for more then 10 min. (5 Replies)
Discussion started by: madfox
5 Replies

9. Shell Programming and Scripting

script to monitor directory

What is the best way for a script to run to monitor a directory for the presence of files and then perform a function afterwords? I was hoping to have it continually run and sleep until it detects that files are present in the directory, then break out of the loop and go on to the next step. ... (17 Replies)
Discussion started by: nulinux
17 Replies

10. UNIX for Dummies Questions & Answers

Hep with script to monitor directory

Hello, I am a newbie who is attempting to write a script to monitor a directory for a set of 3 files that I am expecting to get ftp'd. Occasionally, we suspend operations for maintenance etc. but we still get the files so there can be more than 1 set. If there is more than 1 set, I would like... (2 Replies)
Discussion started by: cmf00186
2 Replies
Login or Register to Ask a Question
ACINCLUDE(1)								GPL							      ACINCLUDE(1)

NAME
acinclude - manual page for ac-archive 0.5.39 SYNOPSIS
acinclude [OPTIONS] ... DESCRIPTION
Generate `acinclude.m4' by scanning `configure.ac' or `configure.in' --acdir=DIR directory holding subdirectories with config files --help print this help, then exit -I DIR add directory to superdir search list for .m4 files . add current directory as superdir to searchlist which is the default if no -I option was given. --output=FILE put output in FILE (default acinclude.m4) --print-ac-dir print name of directory with subdirs holding m4 files --verbose don't be silent --version print version number, then exit Note that unlike aclocal the subdirectories (!!) of the acdir-path are searched for files - the default will find locals as ./*/*.m4 and always search for ac-macros installed as share/aclocal/*/*.m4 which may include the macros from ac-archive or from packages that chose to install multiple files into a subdirectory of share/aclocal. The tool will warn at unresolved symbols starting with AX_ just as the original aclocal program did warn at unresolved macros with AC_. AUTHOR
Written by Tom Tromey <tromey@cygnus.com> modified for acinclude by Guido Draheim <guidod@gmx.de> (C) 2001 REPORTING BUGS
Report bugs with original aclocal to <bug-automake@gnu.org>. Report problems with acinclude to <ac-archive-list@sourceforge.net>. Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
The full documentation for the ac-macros handled with acinclude is maintained as m4 source and converted to html pages which get installed in doc/ac-archive subdirectories in the filesystem at your site. Have a look. ac-archive 0.5.39 January 2003 ACINCLUDE(1)