01-18-2012
Samba server with notification emails
I'm creating a ubuntu samba server that sends out email notifications when a file a new file is created in the monitored directory.
Currently im using inotifywait to monitor a directory and send out a email notification. Inotify wait works great but it gets triggered whenever any file including temp files are created. Is it possible either with inotifywait or another tool to only trigger if the created file has a .doc or docx extension.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible for a group of servers to monitor each other and then send an alert if one of them is no longer 'alive'?
Or if its easier have one server that monitors the other five and then sends an alert.
If so how would this be done?
Thanks (3 Replies)
Discussion started by: Sepia
3 Replies
2. UNIX for Dummies Questions & Answers
the server i have here is a Ubuntu server. it has nagios on it.
after setting up nagios and having it work as it should, i realized at the very end of all my work that obviously nagios will also need to send out email alerts to a set of email addresses that it has in its database.
my problem... (1 Reply)
Discussion started by: SkySmart
1 Replies
3. Shell Programming and Scripting
My linux version is:
Linux version 2.6.9-89.0.9.ELsmp (gcc version 3.4.6 20060404 (Red Hat 3.4.6-11))
My problem is simple (lol) I need find and extract all e-mail from my server.
I know how to extract the e-mail from a text file, the problem is: Where to find the e-mails? How to find all... (2 Replies)
Discussion started by: mauricio_yan
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
The script:
#!/bin/sh
#set -x
# set admin email so that you can get email
ADMIN="myemailaddress"
# set alert level
ALERT=4
df -HP | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
do
#echo $output
usep=$(echo $output | awk '{ print... (5 Replies)
Discussion started by: wbdevilliers
5 Replies
5. UNIX for Advanced & Expert Users
Hello,
i have Sun one Messaging Server 6.3 Up and running, i want to route emails that are destined to a certain email address, let's say test@mydomain.com through the tcp_local channel for example, to another email, and not allowing test@mydomain.com to receive them.
So in short, i want... (0 Replies)
Discussion started by: lemonshare
0 Replies
6. Solaris
Our solaris are configured to send out email and i would like to know the number of emails sent out from the solaris server.
Anyone know can this be done?
Thanks (1 Reply)
Discussion started by: sirius20d
1 Replies
7. Ubuntu
Is there any way to create an SMTP mail server will all granular permissions to it so that I can read emails which that server receives through any scripting language and also reply from the same server automatically? (3 Replies)
Discussion started by: sandeepcm
3 Replies
8. Shell Programming and Scripting
I have two application server appserver1 and appserver 2. A script will run from appserver1 which main activity is
1. Connect with the apserver 2 and run a script which saved on appserver2
2. the saved script will in appserver 2 will complete its task and generate a log
Problem i need to... (0 Replies)
Discussion started by: Imtiaz43
0 Replies
9. UNIX for Dummies Questions & Answers
Hello i have this longterm issue which im unable to solve, i think this is quite simple issue, i hope you may know the cause
It is on CentOS Redhat server with qmail installed.
# service qmail status
# service qmail start
Starting Qmail:
# ps aux | grep mail
qmails 1688 0.0 0.0 ... (1 Reply)
Discussion started by: postcd
1 Replies
10. Shell Programming and Scripting
I m using free zoho mail client application (similar to microsoft outlook) on my mobile for all my emails to mohtashim@techx.com
I wish to only recieve emails from my Linux Server details of which are: techx 3.10.0-514.10.2.el7.x86_64 #1 SMP CentOS release 7.3.1611 (Core).
I try the below... (20 Replies)
Discussion started by: mohtashims
20 Replies
LEARN ABOUT CENTOS
tdbbackup
TDBBACKUP(8) System Administration tools TDBBACKUP(8)
NAME
tdbbackup - tool for backing up and for validating the integrity of samba .tdb files
SYNOPSIS
tdbbackup [-s suffix] [-v] [-h]
DESCRIPTION
This tool is part of the samba(1) suite.
tdbbackup is a tool that may be used to backup samba .tdb files. This tool may also be used to verify the integrity of the .tdb files prior
to samba startup or during normal operation. If it finds file damage and it finds a prior backup the backup file will be restored.
OPTIONS
-h
Get help information.
-s suffix
The -s option allows the adminisistrator to specify a file backup extension. This way it is possible to keep a history of tdb backup
files by using a new suffix for each backup.
-v
The -v will check the database for damages (currupt data) which if detected causes the backup to be restored.
COMMANDS
GENERAL INFORMATION
The tdbbackup utility can safely be run at any time. It was designed so that it can be used at any time to validate the integrity of tdb
files, even during Samba operation. Typical usage for the command will be:
tdbbackup [-s suffix] *.tdb
Before restarting samba the following command may be run to validate .tdb files:
tdbbackup -v [-s suffix] *.tdb
Note that Samba 4 can use .ntdb files instead, so you should use ntdbbackup on those files.
Samba .tdb files are stored in various locations, be sure to run backup all .tdb file on the system. Important files includes:
o secrets.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba.
o passdb.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba.
o *.tdb located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories.
VERSION
This man page is correct for version 3 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The tdbbackup man page was written by John H Terpstra.
Samba 3.6 06/10/2014 TDBBACKUP(8)