On 4/27/22 7:05 AM, Ian Bruntlett wrote:
Hi Bryce,
pv looks like a really good idea to me. Kudos to Andrew Wood for his
code and to the people promoting this tool.
Using pv at the beginning of a pipe provides full information and an
estimate of time remaining. This is really useful.
Using pv to display the progress of a tar command is a little
redundant. Because tar and time can already do that for you. I ripped
this out of a script file of mine I've used in the past.
echo "$0" Running in "$PWD"
echo Creating tar file: $1
/usr/bin/time -f "%E mins:secs " tar --checkpoint=4000
--checkpoint-action=ttyout='%{%Y-%m-%d %H:%M:%S}t (%d sec): #%u,
%T%*\r' -czf "$@"
+1 Ian, 'pv' is wonderful when comparing it to what is required for
time to output something similar.
-sfeole
OTOH, using pv is a lot simpler.
BW,
Ian
--
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/
-- Free Software page -
https://sites.google.com/site/ianbruntlett/home/free-software
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel