Last active
November 2, 2016 19:47
-
-
Save Swarchal/a46760ddd1e14a986f88e39aba53497e to your computer and use it in GitHub Desktop.
SGE job summary (add to .bashrc)
This file contains hidden or 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
# 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