comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Error Handling - Emailing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Error Handling - Emailing [message #35053] Thu, 08 May 2003 06:23 Go to previous message
Benjamin Panter is currently offline  Benjamin Panter
Messages: 6
Registered: August 2002
Junior Member
I'm using programs written in IDL to analyse a massive dataset
(~135k tasks) on about 20 CPUs spread around our site, and would like to
get them to email me when there is a problem (ie when one of them
crashes). I can then quickly sort the problem and get the machine in
question back running, while also spotting any trends which might be
causing the problems. I've worked out how to do it if the data file
simply doesn't exist - that's an I/O error and I would add lines like:

on_ioerror, panic
panic: spawn, 'echo IO Problem with machine X | sendmail
bdp@blob.ac.uk'

On_error has different syntax - but is there a way of adapting it? I've
looked through the manuals and the archive, but nothing springs out.
I'm using the Linux version under redhat and IDL 5.6

Thanks in Anticipation,

Ben

PS: I *am* trying to fix the shoddy part of the code that causes the
problems too!

--
Ben Panter, Royal Observatory, Edinburgh
My name (no spaces)@bigfoot which is a com.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL variables
Next Topic: Calling C++ from IDL - update

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:52:23 PDT 2025

Total time taken to generate the page: 0.00408 seconds