sending email at the end of a script without Java

Hello!
I have written a script to set up the command sendmail, and it works flawlessly... When the Java machine is running.
In my setting, I usually connect via ssh to my office computer and launch heavy code to be computed, so I need a script that notifies me whenever the program stops running and the results are produced. At the same time, I can't stay linked to that computer for all the computing time it takes to finish running, so I need to launch a background Matlab instance (using screen) so that it doesn't get terminated when I log out.
aaand sendmail needs the java machine running, something I cannot have since I work on background.
Is there another command to achieve this?

5 件のコメント

Jonas
Jonas 2021 年 12 月 27 日
maybe u can use the url command to create a mailto link with receiver and mail body and opening the defaul mail program this way, followed by a matlab robot to press ctrl+enter which in many programs sends the email
Adam Danz
Adam Danz 2021 年 12 月 27 日
@Jonas, wouldn't the robot also use Java?
@Giovanni Barbarino I also use matlab's sendmail when waiting for remote analysis computers to tell me they are done or when an error occured but when I log out of the VPN software, the computers and Matlab keep going so I haven't had the problem you described. Keep in mind that sendmail only works in local matlab clients.
Jonas
Jonas 2021 年 12 月 27 日
hm, you are right. maybe we could call an autoHotkey script instead of using the java robot
Jonas
Jonas 2021 年 12 月 27 日
i think it would also be possible to send an email programmatically via thunderbird using the command line
Adam Danz
Adam Danz 2021 年 12 月 27 日
On Windows systems with Microsoft Outlook, you can send email directly through Outlook by accessing the COM server with actxserver.

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

回答 (0 件)

製品

リリース

R2021b

質問済み:

2021 年 12 月 27 日

コメント済み:

2021 年 12 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by