![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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?
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |