![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dynamic editing using shell script | habzone2007 | Shell Programming and Scripting | 1 | 05-14-2008 11:55 PM |
| Unix script to do a global change | progkcp | UNIX for Dummies Questions & Answers | 7 | 05-13-2008 03:20 AM |
| How to declare global variables for shell script | risshanth | UNIX for Dummies Questions & Answers | 2 | 10-31-2007 03:27 AM |
| setting a global variable in script | arunkumar_mca | UNIX for Dummies Questions & Answers | 3 | 10-23-2007 08:46 AM |
| Global Variable in a script? | skyineyes | Shell Programming and Scripting | 2 | 07-12-2007 07:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
trying to be more clear
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|