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

Home » Public Forums » archive » Re: Error Handling - Emailing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Error Handling - Emailing [message #35049] Thu, 08 May 2003 13:22
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Benjamin Panter wrote:

Dear Ben,

I would sugggest to use CATCH.

e.g.

error=0
catch,error
if error ne 0 then begin
spawn, 'echo IO Problem with machine X | sendmail bdp@blob.ac.uk'
catch,/cancel
endif

regards

Reimar

> 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.

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: decoding the JPEG format
Next Topic: .Xdefaults in Gnome on Linux

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

Current Time: Wed Oct 08 19:58:21 PDT 2025

Total time taken to generate the page: 0.00426 seconds