Script to monitor progress of find/exec command
hi all,
i want to monitor the progress of a find and exec command, this is the code i use - Code: find . -type f -exec md5sum {} \; >> /md5sums/file.txt this command works and produces a text file with all the md5sums but while running it doesnt show the progress is there anyway i can do this many thanks, rob |
Quote:
Code:
man tee |
the command tee is good if i want to see the output at the same time i copy the output to a file but i want to see like an ETA and progress bar or percent
|
Not easily... I am not aware of any simple pipe command since find has no clue on total number of files, total bytes or how long it will take to search etc.
|
Did you want to monitor the/each individual md5sum cmd?
(IF not, just report after each completes here) IF so, Idk... Maybe some strace trick, to see what block of the file it's reading... Try like: -exec '( echo {} >/dev/tty; md5sum {} )' \; |
|
Thread closed per above.
|
All times are GMT -5. The time now is 02:52 AM. |