- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gunzip file while it's still being copied?
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
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
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
тАО01-04-2005 03:08 AM
тАО01-04-2005 03:08 AM
A 1GB gzipped file "file1.gz" is being copied to file2.gz in the background to another directory but I simplified the commands below.
cp file1.gz file2.gz &
BEFORE the copy is finished, they start unzipping the target file.
gunzip file2.gz
I checked and md5sum's are the same when the operation is completed, at least for my tests. I would have thought that gunzip would complain that file2.gz is "busy" but it just starts unzipping and finishes up after the copy is complete.
This just sounds like a bad idea but I would like some evidence that this is either a supported or non-supported operation. Any thoughts?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 03:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 03:15 AM
тАО01-04-2005 03:15 AM
Re: gunzip file while it's still being copied?
The simple fact that they're complaining about data integrity certainly makes this practice sound dubious.
How about some testing with files that are unzipped after the copy completes to see if you have any integrity problems then?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 03:19 AM
тАО01-04-2005 03:19 AM
Re: gunzip file while it's still being copied?
Someone in a different office put a zipped file on one of my servers and emailed me with instructions as to what I should do with the file. It didn't occur to him that I would receive and read the email before the file transfer had completed - the result was a horrible mess, and it is not to be recommended!
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 03:25 AM
тАО01-04-2005 03:25 AM
Re: gunzip file while it's still being copied?
. gzip consider it encountered end of file and will produce an uncomplete archive.
. gzip gets a bad data chunk to compress and produces a corrupted file.
Fact is that if they complained about corruption, one of these case may be occuring.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 03:44 AM
тАО01-04-2005 03:44 AM