I am calling a shell script from another shell script, however, it only executes part of it (the echo commands only). What could be some causes for that?
For example:
ShellScriptA.sh:
...
...
...
. ShellScriptB.sh
ShellScriptB.sh contents:
echo date
echo Connecting to database
sqlplus -S username/password << EOF - - - this point on is not executed.
select count(*) from test;
define exit_status = 0
exit &exit_status
EOF
However, when ShellScriptB.sh is executed independently it works just fine. Any ideas?