In a message dated 2/7/2002 8:39:38 AM Mountain Standard Time, [EMAIL PROTECTED] writes:
> > root@lnx1 patch]# tar -xzof redhat-oco-2.4.9-17-s390-2.tar.gz > > redhat-oco/redhat-oco-2.4.9-17-2.tar.gz | tar -C / -xzf - lib > > > > gzip: stdin: unexpected end of file > > tar: Child returned status 1 > > tar: lib: Not found in archive > > tar: Error exit delayed from previous errors > > That's the wrong syntax for tar. The first one is trying to extract > the archive (and hence not writing anything to stdout) whereas you > seem to be expecting something on stdout because you're piping it > to another tar instance that's reading from stdin: "-f -". That > second instance just reads EOF and so complains that it can't extract > the "lib" subdirectory that you asked it to. The second filename > (redhat-oco/redhat....tar.gz) on your first tar command is also > superfluous. What exactly are you trying to do? > > --Malcolm > Malcolm, IBM had a typo in their OCO document. The correct command should have been: tar -xzOf redhat-oco-2.4.9-17-s390-2.tar.gz redhat-oco/redhat-oco-2.4.9-17-2.tar.gz | tar -C / -xzf - ./lib ...and that works for me... Dave Myers
