- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 8.0.0 error while copying
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
02-13-2001 02:16 PM
02-13-2001 02:16 PM
HP-UX 8.0.0 error while copying
I am working on an project for Nortel Networks. I would like to know the following. I just got this email address
from one of the hp links.
In HP-UX 8.0 , I am getting this error in the shell script . This is happening once in thousand times.
cp: cannot overwrite existing directory /iws/ahd
Shell script is :
#! /bin/csh
set NATIVE_SYS="/iws/native_sys"
cd $NATIVE_SYS
set NATIVE_LIST=`ls -1`
foreach entry ($NATIVE_LIST)
if (-d /iws/$entry) then
mv /iws/$entry /iws/$entry.tmp >& /dev/null
endif
cp -r $NATIVE_SYS/$entry ~/iws/
end
May I know when will the system throughs such warnings.
Note : /iws is an symbolic link.
Please letme know why is this happening. If i am asking the wrong person , please direct me to the correct
person.
Thanks In advance. Your response will be apreciated.
Best Regards
--sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2001 04:21 PM
02-13-2001 04:21 PM
Re: HP-UX 8.0.0 error while copying
Are you really running under HPUX 8.0? This is a bad situation if you are where it is not supported in any way and is definitely not Y2K compliant. HP had a deal where many machines that were not capatable of moving to 10.x could use a special Y2K compliant version - 9.10 if I remember correctly. I hope this work that you are doing for Nortel does not need to be imported to their machine where there is a good possibility that it may not work as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2001 04:54 PM
02-13-2001 04:54 PM
Re: HP-UX 8.0.0 error while copying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 12:29 AM
02-14-2001 12:29 AM
Re: HP-UX 8.0.0 error while copying
You must be one of the few still running HP-UX 8.0...
If the user running the script is always root, then in the following statement:
cp -r $NATIVE_SYS/$entry ~/iws/
the ~/iws/ could be replaced by /iws , without the ~ and the trailing backslash.
As I've been using Unix for 20+ years, I remember that, for no reason, cp was sometimes complaining when the destination directory had a trailing backslash.
This could be the reason but, don't ask me where I've seen that written, it's ages ago ;-)
Best regards,
Dan
PS: I concur with Tim, you should definitely try to put your hands on a Y2K compliant version, or upgrade to 10.x if your system allows it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 12:32 AM
02-14-2001 12:32 AM
Re: HP-UX 8.0.0 error while copying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 07:26 AM
02-14-2001 07:26 AM
Re: HP-UX 8.0.0 error while copying
Actually , the ~ in the destination is a mistake , when i cut and pasted a part of my script to post this question.
The command is:
cp -r $NATIVE_SYS/$entry /iws/
The only thing is about trailing '/' . But as i have mentioned this kind of error is complaining once in thouand times. What i am not understanding is that being a root user , and executing cp command, this eror may be caused due to what reasons.
If I could come to know when HP 8.0 throughs this kind of error then I could analyse the possbile causes for this rare condition.
I did execute strings command on the cp binary to see that this error is present in cp only in HP 8.0 but not in HP 10.0
We are using HP 10.0 and now we will be moving to HP 11.0 for most of our development activities. But there are some old systems which are in the field running on HP 8.0. This script has to be used for reverting some unwanted changes.
As this problem is not always reproduceable, i am not able to get into a conclusion how to change the script to solve this.
Please clarify. Thanks a lot
Best Regards
--sunil