Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TAR with multiple files and /G

Jun
121
0
Hi

On checking TAR documentation, I thought that

TAR /G arch B20100809.PRG B20100809A.PRG

will

(i) create arch.TAR from the 2 PRG files
(ii) create arch.TAR.gz from the ARCH.tar, running GZIP on the new TAR file

If I try this out, I see

[C:\First\Sit2\f\g]tar /G arch B20100809.PRG B20100809A.PRG
<= C:\First\Sit2\f\g\B20100809.PRG
<= C:\First\Sit2\f\g\B20100809A.PRG
TCC: Error in archive C:\First\Sit2\f\g\arch.tar.gz :
.tar.gz files cannot be appended to. "C:\First\Sit2\f\g\B20100809A.PRG"

Did I do anything wrong or misread the documentation?

Thanks

Stephen Howe
 
Hi

On checking TAR documentation, I thought that

TAR /G arch B20100809.PRG B20100809A.PRG

will

(i) create arch.TAR from the 2 PRG files
(ii) create arch.TAR.gz from the ARCH.tar, running GZIP on the new TAR file

If I try this out, I see

[C:\First\Sit2\f\g]tar /G arch B20100809.PRG B20100809A.PRG
<= C:\First\Sit2\f\g\B20100809.PRG
<= C:\First\Sit2\f\g\B20100809A.PRG
TCC: Error in archive C:\First\Sit2\f\g\arch.tar.gz :
.tar.gz files cannot be appended to. "C:\First\Sit2\f\g\B20100809A.PRG"

Did I do anything wrong or misread the documentation?

Thanks

Stephen Howe

I see the same thing. If arch.tar.gz doesn't exist:
Code:
C:\btm del arch.tar.gz
Deleting C:\btm\arch.tar.gz
     1 file deleted              8,192 bytes freed

0 C:\btm TAR /G "arch" RegTweaks.btm check.btm
<= C:\btm\RegTweaks.btm
<= C:\btm\check.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\check.btm"
if it exists, the same command produces different error messages:
Code:
C:\btm TAR /G arch RegTweaks.btm check.btm
<= C:\btm\RegTweaks.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\RegTweaks.btm"
<= C:\btm\check.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\check.btm"

The command creates arch.tar.gz, which contains only the first file in the list, in this case RegTweaks.btm
--
Peter
 

Similar threads

Back
Top