14 Replies Latest reply on Apr 30, 2019 12:34 PM by Bill Robinson

    NSH to compress

    Greinger Longbotton
      Share:|

      Hello,

       

      we are trying to compress, move and uncompress a 350MB file.

      We have tryed to use the NSH commands "bzip2", "unzip" and "tar".

       

      But we have got the following problems with them:

       

      • unzip: it take 2 hours to uncompress the file!  (unzip <file>)
      • bzip2: it does not uncompress .zip files. And it does not compress directories. To compress directories we have to use "tar cj" and NSH does not support the "tar" argument " j (J)"    (bzip2 -d -q <file>)
      • tar: it takes too long to compress and uncompress. (tar cvf file.tar <file>)

       

      If we use a native command (nexec -e unzip), it takes very little to compress/uncompress. But we cannot use any native command because we are uncompressing the file in Windows machines, and theres is no native cmdlet to uncompress.

       

      Is there any fast way to uncompress zip files in Windows through NSH ?

       

      We have followed the official documentation:

      https://docs.bmc.com/docs/ServerAutomation/86/developing/working-with-network-shell/network-shell-commands/summarized-descriptions-of-network-shell-commands

       

      Our nsh version:

       

      SERVER% nsh --version

      zsh 4.3.4 (i686-pc-cygwin)

      SERVER% agentinfo

        Agent Release   : 8.9.02.329

        Hostname        : SERVER

        Operating System: WindowsNT 10.0 (x86_64)

        User Permissions: BladeLogicRSCD@ESTRC1WLAPP001->user@SERVER:PrivilegeMapped (Identity via trust)

        Security        : Protocol=5, Encryption=TLS1

        Host ID         : 1234566

        # of Processors : 2000

        License Status  : Licensed for NSH/CM