Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Use "-tzip" in pipe

Help
2005-10-20
2013-05-28
  • Andreas Mair
    Andreas Mair
    2005-10-20

    Hi,

    I try to run:
    ------ SNIP --------
    # cat test.file | 7za a -tzip -si test.file.zip

    7-Zip (A) 4.29 beta  Copyright (c) 1999-2005 Igor Pavlov  2005-09-28
    p7zip Version 4.29 (locale=C,Utf16=off,HugeFiles=on)
    Creating archive test.file.zip

    Compressing                                                             0%
    Error:

    System error:
    E_NOINTERFACE
    #
    ------ SNIP --------

    Is this not supposed to work?

    This works:
    ------- SNIP -------------
    # cat test.file | 7za a -si test.file.zip

    7-Zip (A) 4.29 beta  Copyright (c) 1999-2005 Igor Pavlov  2005-09-28
    p7zip Version 4.29 (locale=C,Utf16=off,HugeFiles=on)
    Creating archive test.file.zip

    Compressing

    Everything is Ok
    #
    -------- SNIP --------

    Thanks in advance!

    Regards,
    Andreas

     
    • Igor Pavlov
      Igor Pavlov
      2005-10-20

      Compressing to zip now use two passes in some cases. So it can not work with stdin.

       
    • Andreas Mair
      Andreas Mair
      2005-10-21

      Hi,

      thanks for your answer!

      Is it possible to limit this the one pass via commandline switch?

      I think zip should really work in a pipe and it would be fine if in that case it would automatically use one pass.

      Regards,
      Andreas

       
      • Igor Pavlov
        Igor Pavlov
        2005-10-21

        There some problems with standards for such file:
        1) pkzip with descriptor
        2) infozip with descriptor
        3) pkzip64 with descriptor
        4) maybe infozip64 with descriptor
        So now I'm not ready to use one of them.