more stupid matlab tricks
- 1 minutes read - 170 wordsI’ve been setting up long-ish runs on my MATLAB instance lately, which is nice because I can wanter off to do something else. The trouble is that I occasionally forget to come back or refocus on work again.
I’ve come up with two solutions to this:
- The first is to use growlnotify to pop up a persistant growl message. This works well enough as long as I’m at the computer:
system('growlnotify -s -m "somefile is done"')
- For more extended aways or if I’m going to take a nap while it runs, I might do something more like:
system('echo "matlab: uflX_aw_constr_log_5_15 done" | msmtp -a traviscj (mycell)@txt.att.net')
You need some setup before this works: I did a brew install msmtp and set up a .msmtprc file. After that, it should work goldenly, at least for AT&T customers. Others might need to look up their email/sms gateway number.
Edit 2013/06/25: I found a much better way to do the emailing from MATLAB; I detailed it in the post better matlab email notifications