Unable to run another command from within shell script, when run from home directory
I am tryin to install an HP tool, HP OV from a script, to automate installation.
I am using the below command in shell script called ov_exec.sh
"source /tmp/LIN/oainstall.sh -i -a -precheckonly"
The install package is located in /tmp/LIN/oainstall.sh
oainstall.sh is the main script which calls upon subscripts based on OS and architechture.
The issue I am facing is one of the subscript does not execute as it is not found, if oainstall.sh is executed form another script, located in directory other than where the oainstall.sh package is located.
I tried giving absolute path to oainstall.sh in my script, still the subscript cannet be called upon, when this script is run from my home directory.
But when the script is run from /tmp/LIN where oainstall packages are located, it executes fine.