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.

Revisions

  1. 24hours revised this gist Jun 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diary.m
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    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' | mail -s 'testing' -A result.txt email@gmail.com" | batch
    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
  2. 24hours revised this gist Jun 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diary.m
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    matlab -nojvm -nodisplay -r "diary('result.txt'), run 'main.m', exit"
    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' | mail -s 'testing' -A result.txt email@gmail.com" | batch
  3. 24hours created this gist Jun 23, 2014.
    1 change: 1 addition & 0 deletions diary.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    matlab -nojvm -nodisplay -r "diary('result.txt'), run 'main.m', exit"