Sponsored Content
Full Discussion: Mail sending
Top Forums Shell Programming and Scripting Mail sending Post 302136513 by SanjayLinux on Tuesday 18th of September 2007 06:13:54 AM
Old 09-18-2007
Give some info

Lets try step by step

1:- First check do you have SMTP service on in your Linux/UnixBox or not
Then create one file
> echo " Hi this is just for testing" >/tmp/testmail

Then send it via mail command

> mail -s "Testing" pankaj.choudhury@tcs.com < /tmp/testmail

Try to see the logs

> tail -n 50 /var/log/messages

If it will not work send me the log mesages, so I will suggest you somthing in better way

So Dun worry !!! Start

~~~Sanjay Tripathi~~~
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sending a mail to a mail client

Hi everyone! I'm trying to create a database monitoring script that reads an alert file and sends an error message if it can 'grep' a particular string. Is there a way to send this message to a mail client using SMTP? Even better, is there any place on this site that has these kinds of... (5 Replies)
Discussion started by: solaris73
5 Replies

2. UNIX for Advanced & Expert Users

sending mail

How do I send an email with a subject and an attachment from a command prompt? (3 Replies)
Discussion started by: mskarica
3 Replies

3. HP-UX

hp ux not sending mail

Hi.. In Hp ux box,, mails are not being sent. they are getting queued up in mail queue. (3 Replies)
Discussion started by: kkhan
3 Replies

4. Ubuntu

help sending mail

Hi, I have kubuntu 8.10 and I would like to configure Ubuntu to can send mail from command line with mailx. I've saw that I need to install a MTA. But I don't know with install and how. Do you know some howto or url where I find how could I configure it? Many thanks and sorry for my... (2 Replies)
Discussion started by: mierdatuti
2 Replies

5. UNIX for Dummies Questions & Answers

sending mail

i want to send an email from the unix machine to the windows machine. now windows dont have any specified folder for the mail. mail has to be sent to the email-id like abc@xyz.com unix machine itself can not directly send mail. it has to be transferred via mail server. (11 Replies)
Discussion started by: parmeet
11 Replies

6. Shell Programming and Scripting

Sending mail

Hi there, How can I send the automated log file, daily at 7 am to the respective mail . Thanks in Advance, Neha (2 Replies)
Discussion started by: NehaKrish
2 Replies

7. Shell Programming and Scripting

Stop sending mail after certain number of mail

Hi guys... I am busy writing a script to notify me via an mail if my application is down. I have done that. Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application. When the application is up again that count should be... (5 Replies)
Discussion started by: Phuti
5 Replies

8. Shell Programming and Scripting

Sending Mail

Hi All, I have a script that looks like this: *********** #!/bin/sh -x cd /u01/app/oracle/diag/rdbms/spdb/spdb/trace cat alert_spdb.log|grep Archiver >/dev/null if ; then mailx -s "Archiver message in Alert log" user@email.com fi ************ Im using the -x option to see any... (1 Reply)
Discussion started by: oradba888
1 Replies

9. UNIX for Dummies Questions & Answers

Sending mail

How can i send a mail when user login in unix ENV. How can i know present use mailID?? Moved out of Contact Us Forum - Please Do Not Post Technical Questions in Non-Technical Forum(s) (1 Reply)
Discussion started by: arun508.gatike
1 Replies

10. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 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)
All times are GMT -4. The time now is 06:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy