Quantcast
Channel: TrueNAS Community
Viewing all articles
Browse latest Browse all 185907

Want to make this while loop look cleaner

$
0
0
Hello all! I am currently upgrading my drives (yay) and I was trying to write a simple while loop to just output the status of the resilvering. What I have is:

while true; do zpool status | grep 'resilvered,'; sleep 30; done
101G resilvered, 8.45% done, 0 days 04:17:52 to go
103G resilvered, 8.64% done, 0 days 04:17:05 to go
105G resilvered, 8.83% done, 0 days 04:16:17 to go
108G resilvered, 9.04% done, 0 days 04:14:45 to go
110G resilvered, 9.23% done, 0 days 04:13:48...

Want to make this while loop look cleaner

Viewing all articles
Browse latest Browse all 185907

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>