The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
nagios-notify 0.10 (Default branch) iBot Software Releases - RSS News 0 04-08-2008 09:50 AM
How the first script should notify in case there is no response from second rajusa10 Shell Programming and Scripting 4 03-19-2008 10:35 AM
Notify Command. venkyA UNIX for Dummies Questions & Answers 2 08-21-2007 03:20 AM
Notify of a new thread linuxpenguin Post Here to Contact Site Administrators and Moderators 5 11-21-2003 05:45 PM
cron fail to run kerwin_hsu UNIX for Advanced & Expert Users 6 03-10-2002 10:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-21-2008
Registered User
 

Join Date: Mar 2008
Posts: 4
Notify Me when job fail using cron

I would like to be notified when an Informix dbexport job fails on a TRU64 system.
My idea is to send an email via telnet, but can only get telnet to do it interactively.
I can do the following steps on my UNIX box interactively, but cannot send an email with a script. Can someone help? Is there a better way to do this?

I tried the following which only works interactively:

telnet xx.yy.zz.ww 25
helo
mail from: 123@123.com
rcpt to: my@email.net
data
subject: email test
The dog
is in the house
.
quit
Reply With Quote
Forum Sponsor
  #2  
Old 05-21-2008
Registered User
 

Join Date: Feb 2008
Posts: 28
If the job fails does it get logged somewhere? If so, wouldn't it be easier to run a logwatcher, add a condition and trigger it to send an e-mail?
Reply With Quote
  #3  
Old 05-21-2008
Registered User
 

Join Date: Mar 2008
Posts: 4
Quote:
Originally Posted by unSpawn View Post
If the job fails does it get logged somewhere? If so, wouldn't it be easier to run a logwatcher, add a condition and trigger it to send an e-mail?
dbexport creates a huge log file called dbexport.out, and at the end it has "dbexport complete", if all is well. I don't know anthing about logwatcher, nor how to send email from unix TRU64.
Reply With Quote
  #4  
Old 05-21-2008
Registered User
 

Join Date: Feb 2005
Location: Bangalore
Posts: 36
You can do it but its completely dependent on how you run the Informix dbexport job.

If you run the job by running a command you can write a small script and call your job from there and depending on the return code of your job you can either send an email or just ignore it.

If you run the job through a scheduling tool (like Control-M) then you can set the e-mail option on the tool itself.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0