Skip to content

Instantly share code, notes, and snippets.

@chenichadowitz
chenichadowitz / run_mfile_and_email.sh
Created February 11, 2014 22:02
For running long-executing Matlab functions and getting an email when they complete.
#!/bin/bash
if [ $# != 4 ]
then
echo
echo "This script expects 4 arguments:"
echo "1) an m-file function name (without the .m)"
echo "2) an integer argument (number of images to use)"
echo "3) a string argument indicating the path to the image folder (no quotes)"
echo "4) a string argument with the email address to send the completion email to"