Question

I'm on a embedded system with busybox an want to extract a very big tar.gz file. At the moment I'm doing this with the tar command.

But this takes several minutes and the user of the device doesn't have access to the console so I want to give a feedback about the uncompression status through another channel. The best thing would be a kind of callback mechanism for each extracted file. Does something like that exist? I have nothing but busybox and a c/c++ compiler for this plattform available. A scriptable tool like tar would be the best.

Was it helpful?

Solution

Check this out:

tar -xzf test.tar.gz --checkpoint=100 --checkpoint-action='ttyout=|'

it will track current progress (tar extraction) with | symbol, --checkpoint-action is kinda callback and --checkpoint is checking time granularity control parameter.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top