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
When new directory is created called vvv under /home/data
I'm trying to disable the email notifications; despite going into my control panel and selecting NO next to Use 'Email Notification' by default? I keep getting email notifications anyway! And I know I've never selected the checkbox next to Email Notification: emails sent to you whenever someone... (2 Replies)
Hi everyone,
I am in the process of trying to decide the correct way to solve a particular scripting/email issue I have and would appreciate any advice.
We have a cronjob running every 10 mins to check disk size on the server and if this exceeds a certain percentage then it will email a... (2 Replies)
Discussion started by: si_linux
2 Replies
3. Post Here to Contact Site Administrators and Moderators
Hi.
On 09-05-2007 Neo posted that new servers were on their way.
1) It would be nice to hear of occasional progress. As far as I can tell, there has not been much of a change. The notice that is posted every now and then talks about a new server "this week". (In fact as I was previewing... (1 Reply)
Hi,
I have a crontab which sents email to a group in a certain interval. The email contains my user id in 'from' field of email - because my user crontab.
I don't have root access for that AIX 5.3 host - and should have to change 'from' field to either 'root' or any other common names.
... (4 Replies)
Hi,
Does any one know how to configure email notifications (to exchange) in Oracle Enterprise Manager 11g OPS Center?
I have gone through the documentation and have done everything it asked, but still no notifications via email. I get the following error:
At the OS level i tried sending email... (20 Replies)
Hi all. I am using Cygwin in Windows 7 and am trying to setup fail2ban so that I can ban foreign IP addresses under SSH, also getting email notifications. I downloaded fail2ban and installed it. I then created jail.local copy from jail.conf and changed some values in jail.local. Now when I try to... (2 Replies)
Wondering if anyone can point me to an example of how to setup a bash script that executes cp mv and rsync commands and only sends an email if there were errors with any of those commands and what the errors are. In addition it should email if the cron event to execute the script fails, or in... (1 Reply)
I have just switched my production server from using the br_backup script that uses fbackup to the fs_backup script that uses PAX. Things seem to work fine and test restores are successful, but I'm not getting a daily e-mail with the backup results that I used to get from the br_backup script. ... (2 Replies)
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. (0 Replies)
Discussion started by: Dhivyaprabha
0 Replies
LEARN ABOUT DEBIAN
luseradd
luseradd(8) System Manager's Manual luseradd(8)NAME
luseradd - Add an user
SYNOPSIS
luseradd [OPTION]... user
DESCRIPTION
Adds an user with name user.
OPTIONS -c, --gecos=gecos
Set the GECOS field to gecos. The GECOS field is traditionally used to store user's real name and other information.
-d, --directory=directory
Set user's home directory to directory. If this option is not present, a default specified by libuser configuration is used.
-g, --gid=group
Set user's primary group to group. group can either be a group ID of an existing group, or a group name; if group is a group name
and the group does not exist, it is created. If the --gid option is not specified, the default group name is user.
-i, --interactive
Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.
-k, --skeleton=directory
Populate the newly created user's home directory with a copy of directory. If this option is not present, a default directory spec-
ified by libuser configuration, or /etc/skel if libuser configuration does not specify a default, is used.
-M, --nocreatehome
Don't create a home directory and a mail spool for the newly created user.
-n, --nocreategroup
If a group is not specified using -g, use group name "users" instead of user. Note that despite the name of the option, the group
will still be created if it does not exist.
-P, --plainpassword=password
Set user's password to password. Note that the password can be viewed while running luseradd using tools such as ps(1).
-p, --password=encrypted
Set user's password to the password represented by the hash encrypted. Note that the hash can be viewed while running luseradd
using tools such as ps(1).
-r, --reserved
The user is a system user. Users that are not marked as system user usually have automatically selected user IDs above a certain
value (500 by default). This information is also passed to the libuser backends. This option implies the -M option.
-s, --shell=shell
Set user's login shell to shell. If this option is not present, a default specified by libuser configuration is used.
-u, --uid=uid
Use user ID uid for the newly created user. An user ID is selected automatically if this option is not present.
EXIT STATUS
The exit status is 0 on success, nonzero on error.
libuser Jan 12 2005 luseradd(8)