Email notifications when new directory is created.

advanced, directory, ed, email

Thread Tools Search this Thread
# 1  
Old 09-11-2018
Email notifications when new directory is created.

Hi Team,

Can you please help me on this, I want to receive an email notification whenever new directory is created under the path /home/data.

Am using bash shell.

We are not sure about the directory name. When ever any new directory is created, scrip should monitor for new directory and trigger an email notification.

For example

Directory =/home/data

When new directory is created called vvv under /home/data


Mail - s "new directory received"

Thanks in advance. Please help me
# 2  
Old 09-12-2018
Linux has inotifywait. Read about it. It will tell you anytime a directory (or whatever type of file you ask for) is created, deleted, etc. You need to run it with privilege.

Please provide full details of your problem for more help.

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Check the new directory and send notifications Dhivyaprabha Shell Programming and Scripting 0 09-11-2018 02:29 PM
Email notifications of PAX backups jduehmig HP-UX 2 05-07-2018 09:23 AM
Email Notifications on Cron Bash Error Only cp mv rsync consultant Shell Programming and Scripting 1 02-04-2017 11:33 AM
How to send a file in UNIX through email which is created only 15 minutes before the current time? puneetkhullar Shell Programming and Scripting 1 01-12-2017 06:40 AM
List files with date, create directory, move to the created directory charli1 Shell Programming and Scripting 6 01-26-2016 03:00 PM
Fail2ban: email notifications and banning ssh IP logins synthesis Windows & DOS: Issues & Discussions 2 12-27-2013 04:06 PM
OPS Center Email Notifications Mack1982 Solaris 20 02-24-2011 05:07 PM
Crontab - Email notifications by alternate user vasukv AIX 4 09-16-2010 12:58 PM
Servers, email notifications drl Post Here to Contact Site Administrators and Moderators 1 09-15-2007 05:40 PM
how to prevent multiple email notifications from monitoring script si_linux Shell Programming and Scripting 2 06-07-2007 06:55 AM
Created cron.allow file and now email fails citrowske Solaris 1 09-14-2006 10:32 AM
now 4 users created, still no email seaghan Forum Support Area for Unregistered Users & Account Problems 3 04-23-2005 06:16 PM
trying to turn email notifications off oombera Post Here to Contact Site Administrators and Moderators 2 05-21-2003 04:54 PM