cancel
Showing results for 
Search instead for 
Did you mean: 

SAP and Korn shell scripts

Former Member
0 Kudos

Hi,

It looks SAP default is c-shell only. I have an issue, when remote calls (rsh) to OS to run a command, k-shell script does not source the .profile. Do any one face this issue? how it was resolved.

Thanks, R

Accepted Solutions (1)

Accepted Solutions (1)

fidel_vales
Employee
Employee
0 Kudos

Hi,

It is a very, very long time, but as far as I remember that is an issue with the rsh.

I think the solution is not to use the Ksh on the destination.

I think there is/was a note indicating so.

For that reason SAP does recommend to use only the cshell.

Edited by: Fidel Vales on Nov 14, 2009 11:02 AM

hi again.

Check note 202227.

> In general, you can use the Korn shell (ksh) as a login shell, however, note that the implementation of the Korn shell differs among the different UNIX platforms. This has lead to problems within SAP, in particular this is the case when you start external programs from an SAP system.

and note 188772

> The .profile file is not read under ksh.

Former Member
0 Kudos

Thanks !! Notes were very useful..

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

The installation defaults to csh but you can use ksh as well, the corresponding scripts are created in the home directory of the <sid>adm user. So you can just switch the shell.

Markus

shaun_wimpory2
Participant
0 Kudos

Hi Markus,

We have existing SAP systems running on csh (on SAP on AIX / Oracle on Linux). I would like to switch the shells to ksh. Is there any risk with just switching the default shells used by <sid>adm and ora<sid> ??

Cheers

Shaun