dynamic global script

Hi,

I have to create a global dynamic script which should ask for the env or some other variables and then create the soft links.

let's say that I have to create ten soft links and the path for these soft links is different for each env

for e.g:
WDEV: /d02/app/applmgr/wdev/appl/CDCRM/bin
WSTG: /d02/app/applmgr/wdev/appl/CDCRM/bin

and the command for soft link is

ln -s /d02/app/applmgr/wdev/appl/fnd/11.5.0/fndcpesr /d02/app/applmgr/wdev/aappl/CDCRM/11.5.0/QC_LDAP_OUT

Is there is a way that I can generate the following two paths dynamically:

/d02/app/applmgr/wdev/appl/fnd/11.5.0/fndcpesr
/d02/app/applmgr/wdev/aappl/CDCRM/11.5.0/

Not based on the information you provided.

What do you mean by the lines the following lines?

WDEV: /d02/app/applmgr/wdev/appl/CDCRM/bin
WSTG: /d02/app/applmgr/wdev/appl/CDCRM/bin

Are "WDEV" and "WSTG" environment variables and is their value "/d02/app/applmgr/wdev/appl/CDCRM/bin"?

Are they supposed to be identical?

If these are variables, how do they relate to the link that has to be created?

You need to be a bit more clear, at least for me to understand what you really want.

Hi SB008,

I know, I wasn't sure in my first post. This is a oracle applications env and there are two env's.

$FND_TOP=/d02/app/applmgr/wdev/fnd/11.5.0
$CDCRM_top==/d02/app/applmgr/wdev/cdcrm/11.5.0

Now the above mentioned values are for wdev database.

let's say that for wbfix env the env's are going to be following:

$FND_TOP=/d02/app/apwbfix/wbfix/fnd/11.5.0
$CDCRM_top==/d02/app/apwbfix/wbfix/cdcrm/11.5.0

Now, I have to create a global script which can be run against any of the above env's for creating the soft links.

and the command I am using for soft links is :

ln -s /d02/app/applmgr/wdev/fnd/11.5.0/fndcpesr /d02/app/applmgr/wdev/cdcrm/11.5.0/app_soft_link1

and these paths are going to change with each env.

so I am kind of confused whether to use case, but than again you have to change the script everytime you add database and this script can't be used for different servers. So If somehow I can get these values from the env itself.

one more thing, If I have these variables set, is it possible to get those into the script.

TIA,
Inder