- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cannot find or open the file. pax: The archive is ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 02:32 AM
12-21-2011 02:32 AM
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
aamir uddin
Solved! Go to Solution.
- Tags:
- pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 02:51 AM - edited 12-21-2011 02:52 AM
12-21-2011 02:51 AM - edited 12-21-2011 02:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 03:23 AM
12-21-2011 03:23 AM
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
aamir uddin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 03:28 AM
12-21-2011 03:28 AM
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..
aamir uddin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 03:29 AM
12-21-2011 03:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 04:01 AM
12-21-2011 04:01 AM
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)
aamir uddin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 04:23 AM
12-21-2011 04:23 AM
Re: Cannot find or open the file. pax: The archive is empty
Hello Dennis,and all Team,
I am awaiting of your precuous reply.
aamir uddin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 04:55 AM
12-21-2011 04:55 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 05:42 AM
12-21-2011 05:42 AM
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)
aamir uddin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2011 06:44 AM - edited 12-21-2011 06:47 AM
12-21-2011 06:44 AM - edited 12-21-2011 06:47 AM
Solution>$ 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