- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compress doesn't compress
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
Forums
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
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
11-10-2003 02:24 PM
11-10-2003 02:24 PM
We've tried to compress them manually but still no luck.
Running file on the files produces various things, some are data, some are awk program text and some are lex program text.
The compress gives no errors, it just runs for a while and then comes back to command line as you would expect. But the file remains uncompressed. The error code after the compress command is 2.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 02:46 PM
11-10-2003 02:46 PM
Re: compress doesn't compress
Only a guess but certain files depending on the contents are actually larger after the compress. Its possible that the compress is not failing but choosing not to compress as the file will be larger.
Not sure but maybe gzip uses a different algorithm so you might be able to compress with them.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 02:47 PM
11-10-2003 02:47 PM
Re: compress doesn't compress
Check free space and post back in the a.m.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 02:48 PM
11-10-2003 02:48 PM
Re: compress doesn't compress
compress uses an algo which sometimes can result in increase/no change in the size of the original file. This actually depends on the contents of the file. Try compressing an already compresed file, you can see the same.
However, you can try using tar/ gzip to compress the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 02:57 PM
11-10-2003 02:57 PM
SolutionI had a look at the compress man page which explains that an rc of 2 shows
"Last file is larger after (attempted) compression"
Compress will only compress a file if it ends up smaller, hence why it appears compress is not working on some of your files.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:51 AM
11-11-2003 06:51 AM
Re: compress doesn't compress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 11:02 AM
11-11-2003 11:02 AM
Re: compress doesn't compress
To determine sparse or not, use this command:
# ls -sl
The "-s" (read: size) tells you, how many blocks (of 512 bytes each) and "-l" tells you the possition of that last byte in that file.
Here's a thread:
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xc7265fe8b250d71190080090279cd0f9%2C00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 11:17 AM
11-11-2003 11:17 AM
Re: compress doesn't compress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 11:48 AM
11-11-2003 11:48 AM
Re: compress doesn't compress
I'm not sure compress handles +2GB files.
Man pgs make no commitment yea or nay.
Try gzip, but use a ver 1.3.1 or higher. DO NOT use the gzip included in the OS - 1.2.4. Get a higher ver from the porting centres.
My 2 cents,
Jeff