Last active
December 12, 2017 07:28
-
-
Save a-maumau/5ee18d0296a51efa5a2a71d6424b617d 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
#!/bin/bash | |
# [ expr ], I'm really mad of "space"["space"expr"space"]"space" thing... | |
if [ $# -eq 1 ]; then | |
eval "watch -n ${1} nvidia-smi" | |
elif [ $# -eq 0 ]; then | |
eval "watch -n 0.5 nvidia-smi" | |
else | |
echo "1 argument please." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment