cancel
Showing results for 
Search instead for 
Did you mean: 

Environment variables in UNIX

Former Member
0 Kudos

Hi Friends,

How to set environment variables in UNIX.

Thanks & Regards

Prasanth

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can do by export environment_variable=value or edit the .profile file.

Former Member
0 Kudos

Hi,

I hope there is a command "setenv" to set the environment variables. Can anyone tell me how to use this command.

If it is possible to edit some file and set the vaue, please tell me the location and the file name.

Thanks & Regards

Prasanth

markus_doehr2
Active Contributor
0 Kudos

> I hope there is a command "setenv" to set the environment variables. Can anyone tell me how to use this command.

Setting environment variables depends on the shell you use.

By default the SAP installation uses the C-Shell (csh). You can find out by logging on to the system and executing

echo $SHELL

> If it is possible to edit some file and set the vaue, please tell me the location and the file name.

On most Unix system environment variables are set by a file called

.cshrc

or

.profile

(for other shells like ksh or bash or...)

Markus

Former Member
0 Kudos

Hi Markus,

You are rewarded for your answer. Thanks for your reply.

Regrads

Prasanth