Notifying changes in files through email


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Notifying changes in files through email
# 1  
Old 01-02-2008
Notifying changes in files through email

Hey folks
Thank you for helping me.I find this website so useful and handy.My latest issue is about notifying change in files say file.txt,file2.sh ...etc to a group of people using sendmail.We are using bash here.

--CoolKid
# 2  
Old 01-02-2008
1. how are you going to manage what files to monitor?

2. how do you detect changes? timestamp, md5sum or diff?

3. how are you going to manage the list of people to receive the notifications?

4. what form will the message take?
# 3  
Old 01-03-2008
1. how are you going to manage what files to monitor?
I got a 3 files to manage.when ever any one of these 3 change it has to get reported.

2. how do you detect changes? timestamp, md5sum or diff?
diff

3. how are you going to manage the list of people to receive the notifications?
by using the sendmail

4. what form will the message take?
Reply With Quote

Iam hoping to use some thing like this Dear $USER filename file has been changed.

Please let me know

Last edited by coolkid; 01-03-2008 at 01:52 PM..
# 4  
Old 01-03-2008
In addition to Porter's question, how time critical is the sending of the message. eg, within 5 minutes of a change. If you are tempted to reply "as soon as a change happens" think about it first, you are sending an email so the user will never get the message as soon as the change happens, and it might be even longer before the email is read.
# 5  
Old 01-03-2008
Reborg..thatz a good point.I have no clue how to respond to this.Advice me which is the best way like what is the ideal time to respond like that. Please let me know

--CoolKid
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Files availability with count in email

Hi all, we have a requirement , we need to check the files availability in the unix folder and their record counts need to be emailed as attached format Files Count File_1 123 File_2 1898 File_3 29 File_4 456 File_5 123 (2 Replies)
Discussion started by: KK230689
2 Replies

2. UNIX for Dummies Questions & Answers

Send Files as Attachments through email

Dear Members, I am trying to send a file as an attachment from the command prompt in Linux. I am using the following: (echo "Find attached Exception Report"; uuencode $DATA_TOP/out/data/$err_rpt_file $err_rpt_file)|/bin/mailx -s "***Exceptions Found" davidk@xyz.com Here err_rpt_file... (2 Replies)
Discussion started by: sandeep_1105
2 Replies

3. Shell Programming and Scripting

Sending email with multiple files..

Hello,, I am loading data into the 4 tables from 4 different input files. The data gets loaded, and the e-mail is also sent to the user, but the log files for all the 4 files is not been sent.. I am trying to send e-mail to users with the log file as attachment. The script is as follows:... (30 Replies)
Discussion started by: msrahman
30 Replies

4. Shell Programming and Scripting

need to send files to an email id

Hi,I would like to send all the files in a particular folder to an e-mail id .I am able to send a particular file via email but that gets displayed in the email as content using the mailx option. I just want to view it in the mailbox as an attached file. Could you please help me out in... (1 Reply)
Discussion started by: arunkumarmc
1 Replies

5. HP-UX

Email files

How to delete old Emails from HP UX system? Thanks (2 Replies)
Discussion started by: ldaliosmane
2 Replies

6. Shell Programming and Scripting

zip and email files

Hi, New to Unix and trying to do something - I am trying to zip bunch of file and email - /sbin/sh If i use mail then I can not specify subject - uuencode file.zip file.zip | mail -s "testfile" mailadd@group.com Error is - mail: illegal option -- s If i use mailx then I can specify... (7 Replies)
Discussion started by: bhush782003
7 Replies

7. UNIX for Dummies Questions & Answers

where are my email log files

I am trying to find the email log file that would have info on users downloading their pop mail. Our email is hosted on a unix server running apache. I am not sure the exact version of mail software running, but when I telnet to the mail server the response I get is this "+OK POP3 v2003.83rh... (3 Replies)
Discussion started by: mstarcom
3 Replies

8. Shell Programming and Scripting

Sending an email with more than one files

Hi, I would like to send an email with more than one attachement. I am using uuencode. I want to achive by suing uuencode. Also please let me know other ways. -Thambi (7 Replies)
Discussion started by: thambi
7 Replies

9. UNIX for Dummies Questions & Answers

Email multiples attachment files

I have a program the will split a large file into smaller files. It works great. I, however, have problem of email these file out to other people: I may have 1 or more files afer SPLIT datafileaa datafileab datafileac manually: mailx -s "data" email@email.com<datafileaa mailx -s... (5 Replies)
Discussion started by: bobo
5 Replies

10. UNIX for Dummies Questions & Answers

Email files with files - wild character

Dear friends: I have these data files: fileaa fileab fileac filead I want to email these file to someone. How can I email EACH SINGLE FILE with a wild card character? mail john@mail.com<fileaa mail john@mail.com<fileab ...............................ac... (4 Replies)
Discussion started by: bobo
4 Replies
Login or Register to Ask a Question