473,382 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to do auto alert email?

Hi!


I need to check everyday log file if anything “error” message on it? If answer yes I like to receive auto email. Please let me know how to write shell script for this auto alert email.plz help me as early as possible.

Thanks and regards
Priyanka
Apr 13 '11 #1
5 2722
miller
1,089 Expert 1GB
  1. Create perl script to scan log file from the given time it was last run
  2. If error detected, use MIME::Lite to send email
  3. Create cron job to run this perl script once a day.

Good luck,
- Miller
Apr 13 '11 #2
Can u give me a simple example.
Actully i am new to Auto Email, so want to know each step in detail
Apr 14 '11 #3
miller
1,089 Expert 1GB
Just read the examples in MIME::Lite for sending an email.

- M
Apr 14 '11 #4
I have run the following command and I am getting the correct output means getting an mail on my email-id with subject “hi”

mailx -s hi abc.xyz@companm.com



--------------------------------------------------------------------------------------------------------




If I want to use the same command in shellscript its not generating the mail

Ex:-

If mail.sh contains:

#! /bin/bash

mailx -s hi abc.xyz@companm.com

can you please tell me in detail how to use mailx command in shellscript, I am new to this ?
Apr 15 '11 #5
miller
1,089 Expert 1GB
mailx is a lunix utility program, so once again mate, this is not a perl issue.

Please just do the research on your own with google's help, or find a more appropriate forum for your questions.

Regards,
- Miller
Apr 15 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Sue | last post by:
<html> Is there someone here that can help me validate the period as the fourth from the last character in an email address. There is other information and validation on the form I have to do but...
0
by: davidgordon | last post by:
Hi, I have a fairly advanced order processing / tracking system I designed with MS Access, MySQL & ASP. I want to add an enhanced order tracking facility where a user can send an email to a...
5
by: gullyou | last post by:
Sorry I crossposted this to java group. Didn't know distinction between Java & Javascript Hi, I'm not a Java script programmer but have this web page with a form form that includes a...
1
by: jrshack | last post by:
I am needing a script that will send an auto-response email back to the email supplied in the registration html form. I have an html form mail that ask for information and an email address from the...
4
by: lyealain | last post by:
hi .. thanks for the effort to read this.. thanks.. can u give me idea on building an auto triggered email system in asp/VB ..every time when it reaches the time i specify..the sytem will auto...
2
by: Boki | last post by:
Hi All, I want to create a program that auto send out email ( not email bomb ) to myself. I tried the MAPI, but it will show a notiifcation message, user need to confirm that. My target is...
1
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric...
1
by: arggg | last post by:
Does anyone know of webhosting that will allow the auto create of email addresses (such as the ones that craigslist.com uses when a new item is setup to be sold) without me having to go into the...
0
by: Alan Joel | last post by:
Hi All, This is my first post so if i happen to post incorrectly, please let me know how to fix. What I am trying to do: 1: Display Checkboxes and Radios in alert box 2: My alert box already...
4
by: darrellw | last post by:
I would like to have a page (URL) on my site that when people go to that page (URL) that it will auto open their email client so that they can send me an email. I am trying to find the code to do...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.