<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div class="gmail_quote"><div dir="ltr">Le lun. 17 déc. 2018 à 17:17, Person Withhats <<a href="mailto:personwithhats2@gmail.com">personwithhats2@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>It's untarring around 1.5GB of SDK's, I don't think listing 1000's of files is going to help.<br></div></div></div></blockquote><div><br></div><div>Yes right.</div><div>You need some "size extraction progress" not number of files progress.</div><div><br></div><div>I'm not sure classical un-archive program do have the feature.</div><div><br></div><div>I'm pretty sure that "working progress bar" is most of the time very difficult to implement:</div><div><a href="https://ux.stackexchange.com/questions/11881/progress-bars-why-are-they-never-useful">https://ux.stackexchange.com/questions/11881/progress-bars-why-are-they-never-useful</a><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I was hoping for some sort of progress bar or the like, </div></div></blockquote><div><br></div><div>I'm pretty sure cmake -E tar does not have this feature.</div><div>Genuine unix tar command does not have such feature and some people uses 'pv' (<a href="http://www.ivarch.com/programs/pv.shtml">http://www.ivarch.com/programs/pv.shtml</a>) </div><div>for that very same purpose</div><div>e.g. <a href="https://superuser.com/questions/168749/is-there-a-way-to-see-any-tar-progress-per-file">https://superuser.com/questions/168749/is-there-a-way-to-see-any-tar-progress-per-file</a></div><div><br></div><div>I guess the issue is the same for other archive tool including zip:</div><div><a href="https://askubuntu.com/questions/909918/q-how-to-show-unzip-progress">https://askubuntu.com/questions/909918/q-how-to-show-unzip-progress</a><br></div><div><br></div><div>CMake is using libarchive for handling various archive files (including tar) libarchive seems to have</div><div>some feature for progress display (<a href="https://github.com/libarchive/libarchive/wiki/ManPageArchiveReadExtract3">https://github.com/libarchive/libarchive/wiki/ManPageArchiveReadExtract3</a>)</div><div>but CMake code is not using it in any way.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>and yes I'm using cmake -E tar .-.<br><br></div>Any ideas? <br></div></blockquote><div><br></div><div>Beside non-portable way no.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 17, 2018 at 7:16 AM Eric Noulard <<a href="mailto:eric.noulard@gmail.com" target="_blank">eric.noulard@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I guess he is using</div><div><br></div><div>cmake -E tar</div><div><br></div><div>may be using 'v' verbose option from tar  should be enough.</div><div><br></div><div>i.e.</div><div>cmake -E tar xvz your-archive.tar.gz</div><div><br></div><div>It should display file names as they come out of the archive.</div><div>So unless your very big archive only contains relatively big files, the output should evolve quite often.</div><div><br></div><div>Eric</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 17 déc. 2018 à 15:46, Ian Cullen <<a href="mailto:ian.james.cullen@gmail.com" target="_blank">ian.james.cullen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    Are you calling tar via a custom command?  tar itself looks to have
    a few options to print progress:<br>
    <br>
    <a class="gmail-m_514369864927252263gmail-m_-8716039683457412291gmail-m_-870134580243705701moz-txt-link-freetext" href="https://www.gnu.org/software/tar/manual/html_section/tar_25.html" target="_blank">https://www.gnu.org/software/tar/manual/html_section/tar_25.html</a><br>
    <br>
    Although none of the options seem to know the archive's size, so
    aren't able to print a completion percentage.<br>
    <br>
    <br>
    <div class="gmail-m_514369864927252263gmail-m_-8716039683457412291gmail-m_-870134580243705701moz-cite-prefix">On 16/12/2018 21:31, Person Withhats
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">When running tar via CMake (in order to use
          cross-platform work-ability and what not) it'd be great to
          have a progress bar of any sort.
          <div><br>
          </div>
          <div>It's awkward to wait 30-60 minutes for file untarring
            with absolutely 0 information. I'm not aware of any way to
            do this through CMake directly, only alternative is e.g.
            python script that does the untar for me.</div>
          <div><br>
          </div>
          <div>Any suggestions? (sorry if this is reposted, can't
            remember if acc was approved before or after sending one
            time)<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="gmail-m_514369864927252263gmail-m_-8716039683457412291gmail-m_-870134580243705701mimeAttachmentHeader"></fieldset>
    </blockquote>
    <br>
  </div>

-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_514369864927252263gmail-m_-8716039683457412291gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div></div></div></div></div></div>