Send alert mail if matlab/computer shuts down

2 ビュー (過去 30 日間)
Martin
Martin 2018 年 6 月 20 日
コメント済み: Rik 2018 年 6 月 20 日
As laid out in the title, what would a proper or easy way of doing this be? I have two computers, if A shuts down with main matlab, I would like B to send the alert mail (I can e.g. use matlab for this)...
Hope to hear from you, thanks in advance

回答 (1 件)

Rik
Rik 2018 年 6 月 20 日
You should be able to send emails with Matlab, see this post. You can put this in a piece of logic that checks if the other computer is up (assuming something like that is possible).
  2 件のコメント
Martin
Martin 2018 年 6 月 20 日
No problem in sending mails. But the way to check if my computer A is up, i dunno
Rik
Rik 2018 年 6 月 20 日
That depends on how they are connected. Can they ping each other? You could use a file syncing system (e.g. dropbox) where you rename a file (which include an identifier for the pc) every fixed interval (e.g. 5 minutes). Then when 1 Matlab notices the other's file is 2 time stamps behind, you can assume that pc is down.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by