Operating System - HP-UX
1752755 Members
5267 Online
108789 Solutions
New Discussion

Size restriction on cat comman

 
marvin51796
Regular Advisor

Size restriction on cat comman

I am trying to combine 6 tar files from symantec by using the cat command, but the  combined tar file is always messed up, is there a limit on that? if so how to increaese it?

 

BL860cI2 - hp-ux 11vi3 patch march 2014.

 

9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Size restriction on cat command

>I am trying to combine 6 tar files

 

Were the 6 files originally one tarfile that was split?  If they are actually 6 tarfiles, why do you want to combine them?

 

Is the total over 2 GB and do you have largefiles enabled?

 

 

marvin51796
Regular Advisor

Re: Size restriction on cat command

yes largefiles is enabled, the combined total is 9.8G, the other tar files that i combined was 4.5 and it worked with no problems..

 

Dennis Handly
Acclaimed Contributor

Re: Size restriction on tar command

>it worked with no problems.

 

Is the file size a multiple of 512 bytes?

marvin51796
Regular Advisor

Re: Size restriction on cat command

here is what i have to work with.

 

-rw-r--r--   1 root       sys        1835008000 Nov  3 10:20 1
-rw-r--r--   1 root       sys        1835008000 Nov  3 10:22 2
-rw-r--r--   1 root       sys        1835008000 Nov  3 10:24 3
-rw-r--r--   1 root       sys        1835008000 Nov  3 10:26 4
-rw-r--r--   1 root       sys        1835008000 Nov  3 10:30 5
-rw-r--r--   1 root       sys        648386560 Nov  3 10:32 6

 

 

i had to rename them to 1 thru 6, symantec had a 20+ charcter name to start with...when i am done with the command

 

cat 1 2 3 4 5 6 > NB_Appliance_N_2.6.0.1-1.tar

 

i end up with a tar file that looks like this

 

-rw-r--r--   1 root       sys        9823426560 Nov  3 12:32 NB_Appliance_N_2.6.0.1-1.tar

Dennis Handly
Acclaimed Contributor

Re: Size restriction on tar command

>-rw-r--r--   1 root       sys        9823426560 Nov  3 12:32 NB_Appliance_N_2.6.0.1-1.tar

 

Looks like the right sum.  What errors does "tar -tvf NB_Appliance_N_2.6.0.1-1.tar" give?

 

>I had to rename them to 1 thru 6, symantec had a 20+ character name

 

Not sure why?  Just put the cat in a script or use wildcards.

marvin51796
Regular Advisor

Re: Size restriction on cat command

here is what happens when i extract the tar file.


x update.rpm.md5_checksum, 33 bytes, 1 tape blocks
x update.rpm.sha1_checksum, 81 bytes, 1 tape blocks
x SYMC_NBAPP_update-2.6.0.1-1.x86_64.rpm, 81 bytes, 1 tape blocks
khepx007:/var/opt/ignite/recovery/mec#

 

notice the file size of the 3rd file its supposed to be alot bigger..not sure of the exact size, symantec havent told me

but the total size is over 9G

marvin51796
Regular Advisor

Re: Size restriction on cat command

i even set ulimit to unlimited just to verify that it wasnt that also.

 

Dennis Handly
Acclaimed Contributor

Re: Size restriction on tar command

These appear to be Linux files, why are you using HP-UX's tar?  Perhaps you need gnu tar?

marvin51796
Regular Advisor

Re: Size restriction on tar command

It actually ended up being a weird setup from symantec, we had to do it different and on the PC side this time...

thanks everyone