Last active
September 5, 2015 15:19
-
-
Save Kaixhin/b7db60b5d6bd23e334b5 to your computer and use it in GitHub Desktop.
MATLAB Job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run MATLAB file and output to file | |
matlab -nodisplay -r <function> [<params>...] > <file> | |
# Email output file once done | |
mutt -s "Results" <email> < <file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH and run script with nohup (ignores logout) ignoring standard output and standard error | |
ssh <user>@<host> -f "nohup <script> > /dev/null 2>&1" | |
# Copy a file (-r for recursive) preserving metadata, verbose, with compression and keeping partial downloads | |
rsync -avzP <user>@<host>:<file> <file> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment