Path: news.mathworks.com!newsfeed-00.mathworks.com!panix!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!msrtrans!News.Dal.Ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: "program terminated" message by mail
Date: Tue, 15 Jul 2008 22:34:49 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <g5j8m9$94v$1@canopus.cc.umanitoba.ca>
References: <g5j7ua$s3u$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1216161289 9375 192.70.172.160 (15 Jul 2008 22:34:49 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 15 Jul 2008 22:34:49 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:479622



In article <g5j7ua$s3u$1@fred.mathworks.com>,
AHMET ANIL DINDAR <adindar@iku.edu.tr> wrote:
>Is it possible to write
>a code that runs my program and checks whether it is running
>or not? And in case of termination the code sends an e-mail
>message.

Yes.

The ease of doing so will depend greatly upon which operating
system you are using, which you have not stated. It would
be automatic in Unix if you start the Matlab run using the "batch"
command.

-- 
  "They called it golf because all the other four letter words
  were taken."                                    -- Walter Hagen