- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hp-ux 7.0 cp command problem...
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
Forums
Discussions
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
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
07-04-2003 03:31 AM
07-04-2003 03:31 AM
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 03:37 AM
07-04-2003 03:37 AM
SolutionI think you will probably struggle to find any utilities for HP-UX 7 these days, it's not been around for quite a while! You may find that writing your own C program would be the best bet.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 03:39 AM
07-04-2003 03:39 AM
Re: hp-ux 7.0 cp command problem...
You really should look at installing a newer OS, such as HP-UX 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 03:56 AM
07-04-2003 03:56 AM
Re: hp-ux 7.0 cp command problem...
Perhaps this is a solution:
create a new cp script that simules cp:
cp
the script is like this:
if [ -f $2 ];then
echo "The file exists. Do you want to upgrade?"
read option
if [ "$option" = "S" -o "$option" = s" ];then
rm $2
cp $1 $2
fi
fi
HTH, Vicente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 06:02 AM
07-04-2003 06:02 AM
Re: hp-ux 7.0 cp command problem...
I've already written a script but I couldn't manage to execute it for the directories (it's simple as you write for the files) but I don't wanna remove contents of a directory, I wanna merge newer files on to it... (maybe I'll work on that if I can't manage to compile cp on 7.0)
I've managed to compile a newer version of cp.c on linux and it's working on linux, I'll try it on HP-UX 7.0 on monday...
Thank you very much for your assistance...
PS. I'll let you know about the result...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 06:29 AM
07-04-2003 06:29 AM
Re: hp-ux 7.0 cp command problem...
have you tried to use tar? Think you could tar the contens of the one directory, change to the destination and extract again. Should work in one commandline without writing a tarfile.
If this works, perhaps you can set this as an alias.
I don't have a shell at hand right now, but it could be something like:
tar -cvf - sourcedir | (cd destination; tar -xf - )
Hope this helps
Regards Stefan