Skip to content

Instantly share code, notes, and snippets.

@bessey
bessey / run.sh
Last active December 13, 2015 18:08
Blue Crystal job submitter, features: - Runs make - Submits the job file './lb_submit' - Moves output to '../(CURRENT-FOLDER-NAME)-reports/' - Ctrl+c cancels job - cats the output of report to screen - takes a parameter for the job title
#!/bin/zsh
# Handy run script.
# Call with './run.sh "<COMMENT>" where <COMMENT> is replaced with your title for the run.
# <COMMENT> must be in quotes.
function itsatrap()
{
echo "Aborting job $jnum"
qdel $jnum
exit 2
}