Created
March 19, 2015 16:34
-
-
Save xandout/04063497a47a09ef4a80 to your computer and use it in GitHub Desktop.
Watch MDADM progress on QNAP.
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
#the busybox on my QNAP TS-420U does not have the watch command so....... | |
while sleep 5; do | |
cls; #clear the screen in the loop incase the string length changes dramatically. | |
TM=`date`; | |
STATUS=`grep finish /proc/mdstat`; | |
echo -ne "$TM$STATUS"\\r; #-ne and \\r(escape the escape char) will make it update in place. http://stackoverflow.com/a/12628482 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment