|
Command not found Error
Hi All,
This might sound like a repeated problem but I feel it quite tough to find a solution. Here is the problem.
Assume the directory structure: /a/b/c/d/e
Current shell script is ksh
There is a SomeScript.sh file in e folder it has -rwxr-xr-x permission. I belong to "Others" and I can execute it as per the permissions. This script uses some environmental variables like $ABCROOT and $CONFIG_DIR, (say) which are exported inside that .sh script (I believe. because I do not have access to the source code of this script. I can only run it).
I did a CD to /a/b/c/d/e and tried executing this script using command csh SomeScript.sh
It gave me error saying
$ABCROOT=<some path>: command not found
export: Command not found
$CONFIG_DIR<some path>: command not found
export: Command not found
I then tried to include /a/b/c/d/e in $PATH by using export command. It did not work. I tried changing the shell to csh (it does not make sense anyway), it did not work even then.
What am I doing wrong? Any one? I am using Sun OS
|