Check the new directory and send notifications


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Check the new directory and send notifications
# 1  
Old 09-11-2018
Check the new directory and send notifications

Hi Team,

I am completely new to Unix programming. I need your help regarding below requirements.

I am working on bash shell

I have a directory called

/home/vvv

Whenever new directory is created under /home/vvv then notify mail shd be triggered.

Thanks in advance.

Last edited by jim mcnamara; 09-12-2018 at 01:35 AM.. Reason: Duplicate post.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

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... (1 Reply)
Discussion started by: Dhivyaprabha
1 Replies

2. Shell Programming and Scripting

How to write this script:- check output word and send a mail?

Hi Guys, I am not Good at scripting. I need to write a script such that if output of command shows the particular word in output then send mail to abc@compay.com -bash-3.2$ ps -ef | grep bpbkar root 6040 1 0 13:05:19 ? 0:00 bpbkar -r 2678400 -ru root -dt 47395 -to 0... (20 Replies)
Discussion started by: manalisharmabe
20 Replies

3. Shell Programming and Scripting

Help....script check status if see something then send email

autorep -m bogus Machine Name Max Load Current Load Factor O/S Status ___________ ________ ___________ ______ ________ ______ bogus --- --- 1.00 Sys Agent Online Status ______ Online Offline Missing Unqualified The "Status" always "Online". I like create a script execute run... (6 Replies)
Discussion started by: dotran
6 Replies

4. Shell Programming and Scripting

Check if file exists if not send an alert

Hi, Im looking to write a script to check if a file exists and if it doesnt then send an email out, Ive found the below code but I don't understand the ! in the if statement can anyone explain? Any help will be much appreciated #!/bin/bash if then echo "File not exists" |... (10 Replies)
Discussion started by: 02JayJay02
10 Replies

5. Shell Programming and Scripting

check postfix deferred mail and send notification script

Hi Guys, I have a postfix server which is deferring emails. Now I need to send notification to a specific email address if: The sender of the deferred email is: abc@example.com Contains specific subjects: a file (/opt/subjects) contains all the subjects in place Then need to send a... (0 Replies)
Discussion started by: linuxrulz
0 Replies

6. Shell Programming and Scripting

Check space of directories and send email if it has reached threshold limit

Hi, I need help in writing unix script for checking space of some directories on the system and also send an email when it reaches the threshold limit. I have written the followng code; #!/bin/ksh ADMIN="me@somewhere.com" # set alert level 80% is default THRESHOLD=80 df | grep -E... (5 Replies)
Discussion started by: jmathew99
5 Replies

7. Shell Programming and Scripting

How to send a directory through mail to many mailists

Hi all, I need to send a mail to many malists with a directory as an attachment. Do we need to zip that dir for this? and I need to send in a good format(Body of the mail) that is in some a.txt file. How to do the same? Can anyone please suggest? ---------- Post updated at 09:47 PM... (3 Replies)
Discussion started by: raghu.iv85
3 Replies

8. UNIX for Dummies Questions & Answers

unix script to check if rsh to box and send status mail

rshstatus=`rsh -n lilo /db/p2/oracle/names9208/restart_names.sh` if $rshstatus <>0 then errstatus=1 mailx -s "xirsol8dr" ordba@xxx.com >> $log_dr else if errstatus=0 echo "status to xirsol8dr successful" can anyone provide if this is t he correct way to do this or is there a better way? (1 Reply)
Discussion started by: bpm12
1 Replies

9. Shell Programming and Scripting

Script to check processes and send an email

I searched through the forum and couldn't quite find what I was looking for. I have a script that looks for a process "DW" to be running. If it is not it will email a notice to an account. I would like to add the functionality to have it also email a seperate notice if there is more that one of... (1 Reply)
Discussion started by: heprox
1 Replies

10. Shell Programming and Scripting

how to check my hard disk is below 10%, and then send mail to superuser

how to write bash to superuser, when the disk space dips below 10% of the total by automatically sending an email? It is have any sample for reference (3 Replies)
Discussion started by: foong
3 Replies
Login or Register to Ask a Question
FLAMEROBIN(1)						   Firebird Administration Tool 					     FLAMEROBIN(1)

NAME
flamerobin -- management and data manipulation tool for the Firebird DBMS SYNOPSIS
flamerobin [-h directory | --home=directory] [-uh directory | --user-home=directory] DESCRIPTION
flamerobin is a graphical frontend to the Firebird DBMS. It is small and simple, yet offers all the basic features needed to create and manipulate databases, execute queries and perform administrative tasks. This manual page only documents the run-time options and environment of flamerobin. Information about using the GUI may be obtained by selecting the Help -> Manual menu item once the application is running. flamerobin uses two directory hierarchies for its normal operation. The data directory contains the templates for property pages, the default configuration and the on-line documentation grouped into three sub-directories as follows: conf-defs default configuration docs on-line documentation html-templates templates for property pages The user home directory contains the per-user configuration, comprising three entries: fr_databases.conf this file stores the user's registered databases. fr_settings.conf this file stores the user's preferences related to the flamerobin GUI. history this directory holds the SQL statement history, one item per file. flamerobin accepts several options, which are described as follows: -h directory --home=directory Use directory as the data directory (but see ENVIRONMENT below). -uh directory --user-home=directory Use directory as the user home directory (but see ENVIRONMENT and CAVEATS below). ENVIRONMENT
FR_HOME Specifies an alternate location for the flamerobin data directory. If both -h (or --home) and this environment variable are set, the command line argument takes precedence. FR_USER_HOME Specifies an alternate location for the flamerobin user home directory. If both -uh (or --user-home) and this environment variable are set, the command line argument takes precedence. FILES
/usr/share/flamerobin The default flamerobin data directory. ~/.flamerobin The default flamerobin user home directory. AUTHORS
flamerobin was written by The FlameRobin Development Team <http://www.flamerobin.org/>. CAVEATS
flamerobin only writes files under the user home directory. If flamerobin is configured so that this directory and the files contained therein are shared among several users or concurrent instances of flamerobin, no precaution is taken to avoid overwriting settings created by other users or other application instances. NOTES
The specification of the data directory and the user home directory (regardless of whether they occur in the environment or on the command line) may be the literal string ``$app'' which translates to a common data folder determined at compilation time, or ``$user'' which trans- lates to the user local data directory. These options currently have effect only on Windows platform. FlameRobin 0.7 April 12, 2006 FlameRobin 0.7