Inside my Shell Script , i have this line present
RUN_CMD="$JAVA_HOME/bin/java -cp $CLASSPATH com/mypack/BalanceRunner
Could anybody please tell me , what is meant by this command RUN_CMD
and where can i see this RUN_CMD defined
Thanks for reading
That’s defining an environment variable
RUN_CMD(looks like a quote omitted at the end, though). It’s shorthand for running that Java command (which defines where to find some classes and then specifies which class to run –BalanceRunner)The variable is in scope for the current process (a shell, or shell script, most likely). You can see what it’s set to by doing:
(note: specifics are shell-dependent but the above is true for Bourne shell derivatives certainly)