Skip to content

Instantly share code, notes, and snippets.

@Swarchal
Last active November 2, 2016 19:47
Show Gist options
  • Save Swarchal/a46760ddd1e14a986f88e39aba53497e to your computer and use it in GitHub Desktop.
Save Swarchal/a46760ddd1e14a986f88e39aba53497e to your computer and use it in GitHub Desktop.
SGE job summary (add to .bashrc)
# define some colours for pretty output
NC='\033[0m'
RED='\033[0;31m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
alias=qstatus="echo -e '${NC}----------' ;\
echo -e '${GREEN}running:' ;\
qstat | grep ' r ' | wc -l ;\
echo -e '${NC}----------' ;\
echo -e '${YELLOW}queued:' ;\
qstat | grep ' qw ' | wc -l ;\
echo -e '${NC}----------' ;\
echo -e '${RED}errored:' ;\
qstat | grep ' Eqw ' | wc -l ;\
echo -e '${NC}----------'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment