Closed mrklein closed 9 years ago
foamExec seems to resolve the issue:
if [ "$screenOpt" = true ]
then
echo "Executing: $APPLICATION $(echoArgs "$@") | tee log &"
foamExec $APPLICATION "$@" | tee log &
wait $!
else
echo "Executing: $APPLICATION $(echoArgs "$@") > log 2>&1 &"
foamExec $APPLICATION "$@" > log 2>&1 &
fi
Since (DY)LD_LIBRARY_PATH variables are suppressed from environment of protected executables (in this case protected executable is bash), cases, which load additional libraries, fail when started with foamJob.
Possible solutions: