Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a copy command better than cp on HP-UX 7.0 ?

Status
Not open for further replies.

thakan

Programmer
Jun 17, 2003
4
TR
Hello,

I'm a novice on UNIX and I've got a problem with cp command on HP-UX version 7.0 .

cp command is quite primitive on HP-UX 7.0 and It doesn't allow me to merge into an existing directory with the same name. It has only -r option in order to copy recursively but it doesn't have the -i or -f options to merge into an existing directory with the same name... It simply fails to do that. Is there any command on HP-UX 7.0 to do that??? Or is there a way to upgrade only that command or a solution?

Thanks in advance.

 
Is there a reason why you are using HP-UX 7.0?

Have you tried copying the file and adding an extension to it when you do the copy? Then use the mv command to rename the file to what you want. Kind of kludgey, but it might work.
 
We have hundred thousands of codes written on that system and unfortunately they're system dependant, we don't have the source code of some files, that's why we can't upgrade it.

The filename keeps the serial number so I can't rename it. Thanks for the answer.
 
I don't understand what you mean "the filename keeps the serial number".

My suggestion is to rename it only momentarily to get it into the directory you want. Then, once it's in the directory, you can move it back to its original name.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top