10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Experts,
Greeting to all of you.
I have a requirement, that we have a shell script status.sh
that check the status of server and server status shows as status.sh
Enterprise Server - Running
Admin Server - Shutdown
Requirement is like whenever the output shows shutdown it should... (2 Replies)
Discussion started by: aks_1902
2 Replies
2. Shell Programming and Scripting
I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0.
Run remote command to read a file and grep for test word.
if test word is in the file, send email.
if not, do nothing
also possible to ssh to multiple... (3 Replies)
Discussion started by: jaapar
3 Replies
3. Shell Programming and Scripting
Hello Unix Experts!
We are on AIX 6.1 TL6
I am trying to develop a script that does the following:
It should send the output of "df -g /directory/folder" command as an email to a user(someone@company.com)
This is too simple and i can research on how to do it, but it would be great if... (2 Replies)
Discussion started by: atechcorp
2 Replies
4. Windows & DOS: Issues & Discussions
This is a script in visual basic that basically sends an email from an existing account, in this case the example is provided for live.com. It uses CDO (Collaboration Data Objects).
All you need to do is replace the fields with the proper information.
The email is send from Command Prompt... (0 Replies)
Discussion started by: Tribe
0 Replies
5. UNIX Desktop Questions & Answers
Have problem to send email from command line according to the posts like this one:
To have the ability to send email from the command line, you will need to install the mailutils and postfix packages with the following commands.
apt-get install mailutils
apt-get install postfix
Now... (1 Reply)
Discussion started by: yifangt
1 Replies
6. Shell Programming and Scripting
Hello all
I'm trying to write a script to send an email, so I can be nnotified when something is going wrong with my system.
I've tried many options with no luck:
mail -s "You've got mail" somebody@example.com
echo "Mail Body" | mail -s "Subject" somebody@example.com
I tried also to... (1 Reply)
Discussion started by: samer.odeh
1 Replies
7. Shell Programming and Scripting
I m totally new to this so excuse my ignorance. I want to write a small and simple script to execute in terminal on my MAC. I want to be able to send a ssh command and then once connected send the password and once logged in send two commands.
I can easily write the script to connect, but then... (2 Replies)
Discussion started by: NOYB111
2 Replies
8. Shell Programming and Scripting
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies
9. UNIX for Dummies Questions & Answers
Hey Guys,
I have been trying to send a email as ccto a email ID .However it seems the -c option is not working in HP UX system.
It is shooting an error as "mailx: illegal option -- c"
My script isin the below manner:
mailx -c EMAIL_IDS_CC# -s 'BDC reminder' -r sender@email.com... (1 Reply)
Discussion started by: rohit.shetty84
1 Replies
10. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
IWATCH(1) General Commands Manual IWATCH(1)
NAME
iwatch - a realtime filesystem monitor / monitor any changes in directories/files specified
SYNOPSIS
iwatch [options]
DESCRIPTION
This manual page documents briefly the iwatch command. iWatch is a realtime filesystem monitoring program. It's a simple perl script to
monitor changes in specific directories/files and send email notification immediately. It reads the dir/file list from xml config file and
needs inotify support in kernel (Linux Kernel >= 2.6.13).
OPTIONS
Usage for daemon mode of iWatch:
iwatch [-d] [-f <config file>] [-v] [-p <pid file>]
In the daemon mode iWatch has the following options:
-d Execute the application as daemon. iWatch will run in foregroud without this option.
-f <configfile.xml>
Specify alternative configuration file. Default is /etc/iwatch/iwatch.xml.
-p <pidfile>
Specify an alternate pid file (default: /var/run/iwatch.pid)
-v Be verbose.
Usage for command line mode of iWatch:
iwatch [-c command] [-e event[,event[,..]]] [-h|--help] [-m <email address>] [-r] [-s <on|off>] [-t <filter string>] [-v] [--version] [-x
exception] [-X <regex string as exception>] <target>
In the command line mode iWatch has the following options:
-c <command>
You can specify a command to be executed if an event occurs. For details about the string format take a look at
/usr/share/doc/iwatch/README.gz.
-C <charset>
Specify the charset (default is utf-8).
-e <event[,event[,..]]>
Events list. For details about possible events take a look at /usr/share/doc/iwatch/README.gz.
-h, --help
Print help message.
-m <emailaddress>
Contact point's email address. Without this option, iwatch will not send any email notification (obviously).
-r Recursivity of the watched directory.
-s on|off
Enable or disable reports to the syslog (default is off/disabled).
-t <filter>
Filter string (regex) to compare with the filename or directory name.
-x <exception file or directory>
Specify the file or directory which should not be watched.
-X <regex string as exception>
Specify a regex string as exception.
USAGE EXAMPLES
% iwatch /tmp
Monitor changes in /tmp directory with default events.
% iwatch -r -e access,create -m root@localhost -x /etc/mail /etc
Monitor only access and create events in /etc directory recursively with /etc/mail as exception and send email notification to
cahya@localhost.
% iwatch -r -c (w;ps -ef)|mail -s '%f was changed' root@localhost /bin
Monitor /bin directory recursively and execute the command.
% iwatch -r -X '.svn' ~/projects
Monitor ~/projects directory recursively, but exclude any .svn directories inside. This can't be done with a normal '-x' option
since '-x' can only exclude the defined path.
AUTHOR
iwatch was written by Cahya Wirawan <cahya@gmx.at>.
This manual page was written by Michael Prokop <mika@debian.org> for the Debian project (but may be used by others).
IWATCH(1)