Created
August 2, 2019 07:20
-
-
Save achateigner/a22062361f8868cef67755087e812fbc to your computer and use it in GitHub Desktop.
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
sqdemon () { | |
a=0 | |
while [[ $a != 1 ]]; do | |
date | |
squeue -u achateigner | |
a=$(squeue -u achateigner | wc -l) | |
echo $a | |
sleep ${1:-10} | |
nblines=$(echo "$a + 2" | bc) | |
for (( i = 1; i <= $(($nblines)); i++ )); do | |
tput cuu1 | |
# tput el | |
done | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment