cancel
Showing results for 
Search instead for 
Did you mean: 

Kernal upgrade...

Former Member
0 Kudos

Hi SAPStars,

I have done Kernal Upgrade in our ECC System,

I have uncared the Patch into a Temp Directory and

when I copy the uncar files in the TEMP folder to EXE folder using CP Command , It is asking me for each file whether you want to overwrite the file in exe directory and I ended giving yes,yes...........yes for nearly 800 files,

it took abt 30 mins, I mean it should directly overwrite all the files without user interaction,

Can anyone tell me the CP command option which i can use to get rid off this problem...

OS---Linux

DB---Oracle

Thanks In Advance...

HariKrishna

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi,

just you can user cp -R source file target file.

Ex: cp -R /usr/sap/abc/. /usr/sap/trans/SID/SYS/exe/run/.

warm regards

Harish K Reddy

hannes_kuehnemund
Active Contributor
0 Kudos

Hi HariKrishna

use the option


cp --reply=yes <source> <destination>

Thanks,

Hannes

Former Member
0 Kudos

I tried using the option you provided but getting the following result...

[root@SAPDEVXI /]# cp --reply=yes /test2/* /test1

cp: the --reply option is deprecated; use -i or -f instead

[root@SAPDEVXI /]#

hannes_kuehnemund
Active Contributor
0 Kudos

Yes, but it still copies, its just a warning ...

Former Member
0 Kudos

yes, Thanks for your answer.

Regards,

HariKrishna

Former Member
0 Kudos

Hi Hari,

You can use the below command as well

cp -R -f * /<DIR_PATH>

It will not give you waring and copy the file without asking.

Thanks,

Bhanu

Former Member
0 Kudos

HI

I will suggest u to rename the old kernal using mv command and then create a new directory with old name and copy contents to it. This was you can also make sure you have a backup of your old kernal if u face any issues..