|
urgent help needed.
Ok I admit it I am stumped and I would appreciate any and all help
Here is what I am trying to do.
Korn Shell script
I am setting a variable to another shell script that I want to invoke in my main script like so:
GETDIR=/vol100/cfg/.getdir
The .getdir shell script take a parameter, for example:
./getdir somedir
This returns a single entry.
I set another variable in the main script to the parameter
PARAM=someparameter
Now inside my main script I want to get the result of running the .getdir script with the parameter
And I am trying to do this like so
NETDIR=$(${GETDIR} ${PARAM})
echo ${NETDIR}
But it doesn't work ${NETDIR} is always empty.
Any suggestions?
Thanks,
Batch
|