Skip to content

Instantly share code, notes, and snippets.

@Kaixhin
Last active September 5, 2015 15:19
Show Gist options
  • Save Kaixhin/b7db60b5d6bd23e334b5 to your computer and use it in GitHub Desktop.
Save Kaixhin/b7db60b5d6bd23e334b5 to your computer and use it in GitHub Desktop.
MATLAB Job
# Run MATLAB file and output to file
matlab -nodisplay -r <function> [<params>...] > <file>
# Email output file once done
mutt -s "Results" <email> < <file>
# 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