Skip to content

Instantly share code, notes, and snippets.

@24hours
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save 24hours/53f5b4c483274fa08b4c to your computer and use it in GitHub Desktop.

Select an option

Save 24hours/53f5b4c483274fa08b4c to your computer and use it in GitHub Desktop.
Handling Matlab on cmd
echo "matlab -nojvm -nodisplay -nosplash -r \"warning off, delete('result.txt'), warning on, diary('result.txt'), try, run 'main.m', catch e,disp(getReport(e)), end, exit\" ; echo 'Test Result attached' | mail -s 'Matlab Experiment Completed' -a 'From: Cluster@ubuntu (Mulsec Cluster)' -A result.txt s@gmail.com" | batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment