Hi,
Quote:
Originally Posted by vjayraghavan
Is it a script (no hashbang on the first line) --- > i missed to copy that line
|
Is it a bash/ksh/csh/??? script?
Quote:
Why parse your profile, ---- > It has some variable exported which this program needs
|
You only need to do that in special cases, normally your profile is parsed when logging in and the variables should be available to you (and any child). Why are you parsing it.
Quote:
vijayconf.sh seems to be a script, why parse it and not execute it, ---> it is a conf file which has value of $partner_home , and many variables
|
To keep files 'undestandable' I would suggest renaming it to vijayconf.cfg (.conf, .ini whatever your preference but it should reflect its purpose).
Quote:
partner_home=$PARTNERS_HOME/bbysku
|
Is PARTNERS_HOME set somewhere else? Otherwise this one would be NULL (empty).
You did not answer the question about how the function is called.
You mention that this seems to be working on another machine. What are the differences? (linux vs Unix, bash vs ksh etc).
Using
set -x at the beginning of the script (after the hashbang) outputs all expanded/filled arguments (among other things), during the run of the script. I could give you a clue which step(s) do/don't work.