1

An example would be the badblocks. Just now I was using it as sudo badblocks -sv /dev/sdb

This utility takes a long time to work. Particularly for large disks from years ago that aren't in the best condition. The output is the usual 'interactive' output, roughly looks like the following.

... 5.77% done, 50:44 elapsed. (0/0/0 errors)

I am wondering if there is an utility that I can use, through piping or some other means, that would let me see the stdout as usual, and occasionally (for example once every few minutes), record the output of that program to that point in a text file. Recording every line it ever writes would be an acceptable solution as well. I also would like to keep the realtime stdout I see in the terminal.

Thanks in advance.

FedKad
  • 10,515
Lacey
  • 11

0 Answers0