- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can cp fail with a deleted dest file?
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
тАО09-18-2002 04:00 AM
тАО09-18-2002 04:00 AM
Can cp fail with a deleted dest file?
I try to ask again. Is it never possible that the cp command fails with a deleted dest file?
I think this happed in once in my batch job, because the partition is nearly full.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:01 AM
тАО09-18-2002 04:01 AM
Re: Can cp fail with a deleted dest file?
As I mentioned, your cp command fails because the "partition" filled. Because the cp was unable to complete, the file is not there.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:03 AM
тАО09-18-2002 04:03 AM
Re: Can cp fail with a deleted dest file?
If I understand your question correctly then cp will fail if the destination becomes full during the copy and the file it fails on will be zero bytes at the destination.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:08 AM
тАО09-18-2002 04:08 AM
Re: Can cp fail with a deleted dest file?
as per your previous post, cp is failing due to insufficient space. I suggest you to use link(ln) instead of cp which saves you the space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:09 AM
тАО09-18-2002 04:09 AM
Re: Can cp fail with a deleted dest file?
probably cp is failing because of lack of space in the file system.
Only mv command works like that.It does not write all the file to the destination unless everything is moved.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:29 AM
тАО09-18-2002 04:29 AM
Re: Can cp fail with a deleted dest file?
First, you don't need to open a new question everytime. You can reply to the original to continue the thread.
Second, are you saying that you did "cp /home/mydir/filea /home/hisdir/fileb" and filea disappeared?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:35 AM
тАО09-18-2002 04:35 AM
Re: Can cp fail with a deleted dest file?
This is what I want to say.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:38 AM
тАО09-18-2002 04:38 AM
Re: Can cp fail with a deleted dest file?
Um Sachen klarzustellen seien Sie Sie sagend da?? Ihr "CP" Befehl ausfiel und Ihre Quellakte verschwand?
Oder da?? die Bestimmungsortakte verschwand.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:45 AM
тАО09-18-2002 04:45 AM
Re: Can cp fail with a deleted dest file?
This is what I want to say.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 04:48 AM
тАО09-18-2002 04:48 AM
Re: Can cp fail with a deleted dest file?
That makes sense. When the cp command started, the old file was replaced with what you were starting to copy. When the cp command failed, you were left with nothing.
Pete
Pete