System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find or open the file. pax: The archive is empty

 
SOLVED
Go to solution
aamir4u
Regular Advisor

Cannot find or open the file. pax: The archive is empty

HEllo,

How to PAX file open to orignal form and extract to another folder in same machine.

 

billdev2# billdev2#cd /c03 billdev2#ls 44muf0cm.tar.gz                                 ISSUE_TRACKER                                   mysql-6.0.11-alpha-hpux11.23-ia64-64bit.tar.gz 44muf0cm_1_1                                    TRAINING_BKP230911                              pairsfile.txt 44muf0cm_1_1.tar.gz                             TRAINING_BKP250811                              prodbkp @LongLink                                       aam.tar                                         rt-4.0.4 APPS_apps_PROD.tar.gz.04112011                  copy                                            rt-4.0.4.pax.gz ISSUEDB                                         lost+found                                      rt-4.0.4.tar.gz ISSUE_DB                                        mysql-6.0.11-alpha-hpux11.23-ia64-64bit         things.tar.gz

 

gunzip < rt-4.0.4.pax.gz | /c03/copy sh: /c03/copy:

 

 Execute permission denied. billdev2#

I am also done my chown mode to root and chmod to 777 but error message genrated.

 

1.How to PAX file open to orignal form and extract to another folder when i try command: 

billdev2#gunzip < rt-4.0.4.pax.gz | pax -r rt-4.0.4.pax sh: rt-4.0.4.pax.gz

: Cannot find or open the file. pax: The archive is empty.

 

2.Please give me any example

 

MODEL=HP_UX.11.31

 

 

 

Thanks
aamir uddin
9 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Cannot find or open the file. pax: The archive is empty

>How to PAX file open to original form and extract to another directory in same machine?

 

If you just want to move files, you don't need to make an archive.  You can just use pax -r -w to do the cloning.

Or you could use something like:

   pax -w ... | (cd target; pax -r ...)

 

You can also use pax's -s option to rename file paths.

 

>gunzip < rt-4.0.4.pax.gz | /c03/copy sh: /c03/copy:

 

I'm not sure what you are trying to do on the RHS of the pipe?  Your formatting seems all messed up.

If you already have rt-4.0.4.pax.gz, you can use this to unpax it:

gzcat rt-4.0.4.pax.gz | pax -r -v

 

>1. How to PAX file open to original form and extract to another directory when I try command: 

>#gunzip < rt-4.0.4.pax.gz | pax -r rt-4.0.4.pax sh: rt-4.0.4.pax.gz

: Cannot find or open the file. pax: The archive is empty.

 

I'm not sure what you really have above?  But gunzip also works for me to extract or list everything:

gunzip < rt-4.0.4.pax.gz | pax -r -v  # extract

gunzip < rt-4.0.4.pax.gz | pax -v     # list

aamir4u
Regular Advisor

Re: Cannot find or open the file. pax: The archive is empty

ok i extract and list file its ok

 

but when i made pax  rt-4.0.4. file . that file its change to rt-4.0.4.pax.gz pax file

 

My question is that how to change rt-4.0.4.pax.gz pax file to orignal one rt-4.0.4. file.

 

Please help me as soon as possible (you are very kind )

 

Thanks

 

Thanks
aamir uddin
aamir4u
Regular Advisor

Re: Cannot find or open the file. pax: The archive is empty

Hi,

When i run command

billdev2#pax -w rt-4.0.4new.pax.gz | /c03/copy; pax -r

 sh: /c03/copy: Execute permission denied.                   <ERROR MESSAGE>

 

How to solved that problem..

Thanks
aamir uddin
Dennis Handly
Acclaimed Contributor

Re: Cannot find or open the file. pax: The archive is empty

>when I made pax  rt-4.0.4 file that file its change to rt-4.0.4.pax.gz pax file

 

I'm confused.  Is rt-4.0.4 a file or directory you wanted to put in an archive?

 

>My question is that how to change rt-4.0.4.pax.gz pax file to original one rt-4.0.4 file.

 

Did you use pax -r to extract from the archive?

 

I would be helpful if you listed all of the commands you did.

You may want to paste it in a block that looks like this so the formatting
isn't messed up.  This is the Clipboard icon above with a big C.

 

aamir4u
Regular Advisor

Re: Cannot find or open the file. pax: The archive is empty

Hi, 

 

 

billdev2# cd rt-4.0.4        -------------(Its a dir)

billdev2# ls

 .perlcriticrc   README          config.log      docs            share .perltidyrc     README.Oracle   config.pld      etc             t .tag            aclocal.m4      config.status   install-sh COPYING         autom4te.cache  configure       lib Makefile        bin             configure.ac    m4 Makefile.in     config.layout   devel           sbin

 

      listed all of the commands :-------

 

1--       pax -w -v -x pax rt-4.0.4 |gzip > rt-4.0.4new.pax.gz     ----------(its run)ok

2--       gzcat < rt-4.0.4new.pax.gz | pax -r -v             ------------(its run)ok

3--            gunzip < rt-4.0.4new.pax.gz | pax -r -v      ---------------its run)ok

4--          gunzip < rt-4.0.4new.pax.gz | pax -v       ------------(its run)ok

 

    I want to folder rt-4.0.4 back to orignal condition .

    Without compress without pax (its orignal condition)

         

Thanks
aamir uddin
aamir4u
Regular Advisor

Re: Cannot find or open the file. pax: The archive is empty

Hello Dennis,and all Team,

 

I am awaiting of your precuous reply.

Thanks
aamir uddin
Dennis Handly
Acclaimed Contributor

Re: Cannot find or open the file. pax: The archive is empty

>1-      pax -w -v -x pax rt-4.0.4 | gzip > rt-4.0.4new.pax.gz     ----------(its run)ok

 

This would only be ok if you got a list of all of the files to stderr.

 

Did you cd to rt-4.0.4 at step 0?  Or was that to do the ls?

If you did, you need to move up one.  Or you can just use ".":

pax -w -v -x pax . | gzip > rt-4.0.4new.pax.gz

 

If you use ".", you can create a new directory rt-4.0.4_new and put the same files there.

 

So if you are in the directory that contains rt-4.0.4, then steps 1 & 2 or 1 & 3 should put the directory back the way it was.

aamir4u
Regular Advisor

Re: Cannot find or open the file. pax: The archive is empty

 

Every command is running..

 

When i running pax utility on bugzilla folder

uatdata1 /c01/bugzilla-4.0.2# pwd

                   /c01/bugzilla-4.0.2

and run pax command on bugzilla-4.0.2 dir = pax -w -v -x pax . |gzip > bugzilla.new.pax.gz

now bugzilla dir have new folder (bugzilla.new.pax.gz)

O.K.

 now i want to extract that (bugzilla.new.pax.gz) folder to  /c01/bugzilla-4.0.2/aamir folder

 

(How can we do that........mean to say. how can extract every single file under bugzilla.new.pax.gz folder to   /c01/bugzilla-4.0.2/aamir folder)

 

 

Thanks
aamir uddin
Dennis Handly
Acclaimed Contributor
Solution

Re: Cannot find or open the file. pax: The archive is empty

>$ pax -w -v -x pax . | gzip > bugzilla.new.pax.gz

>now bugzilla dir have new folder (bugzilla.new.pax.gz)

 

This is a fatal user error.  Either pax will read that new file and cause the archive to be infinitely large or it will have junk there.  You need to put the output somewhere else.

(And bugzilla.new.pax.gz is a file (or pax archive), not a directory or folder.)

 

>how can extract every single file under bugzilla.new.pax.gz folder to /c01/bugzilla-4.0.2/aamir folder

 

cd aamir

gzcat path-to/bugzilla.new.pax.gz | pax -r