The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-21-2008
ejaggers ejaggers is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 5
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