Notifier

버전 1.0.0.0 (2.13 KB) 작성자: Benjamin Kraus
Notify you via email or text message when your functions finish or crash.
다운로드 수: 1.5K
업데이트 날짜: 2010/9/16

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

notifier - Notifies you via email when a function finishes.

USAGE:
varargout = notifier(recipients, fh, varargin)

notifier is a wrapper for a sub function. It takes as input a list of recipients, a function handle, and arguments for the sub function. It then calls the sub function, passing in all the arguments, and notifies the recipients via email when the sub function completes. In the event of an error, the text of the error message is sent to the recipients via email. This is designed for long running functions, so you can leave the computer and be notified when to come back. This function uses sendmail to send notices, so make sure that sendmail is working properly before attempting to use this function. Sendmail accepts email addreses, but if your phone/carrier supports this feature, you can often use specially fomatted email addresses to send TXT messages to your mobile phone. For example, for Verizon Wireless, you can use the email address <phonenumber>vtext.com, such as 6175551212@vtext.com.

INPUT:
recipients - E-mail addresses to notify. Passed directly to sendmail,
so see the documentation for sendmail for formatting.
fh - Function handle for the sub function to run.
varargin - Input arguments passed directly to the sub function.

OUTPUT:
varargout - Output from the sub funtion is passed directly as output
from this function.

EXAMPLE:
Without notifier:
output = myfunc(arg1, arg2)
With notifier:
output = notifier('email@address.com', @myfunc, arg1, arg2)

인용 양식

Benjamin Kraus (2024). Notifier (https://www.mathworks.com/matlabcentral/fileexchange/28733-notifier), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 MATLAB Mobile에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0