Created
August 28, 2014 07:53
-
-
Save filviu/7e8f04b1cf6922d65df3 to your computer and use it in GitHub Desktop.
Sync smart status for http://phpsysinfo.github.io/phpsysinfo/
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 | |
count=0 | |
for DISK in sda sdb sdc sdd sde sdf; do | |
/usr/sbin/smartctl --all /dev/$DISK > /var/www/htdocs/status/data/smart$count.txt | |
((count++)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment