I have a script that is being run as part of a deployment. The script tries to restart a service called AIG. The deployment started failing stating that some binaries could not be located – libtbbmalloc.so.2. I then copied the same command the script runs onto a Terminal on Linux and using did sudo onto the same user.
sudo -u tc-pavan -I
When I now run the same command on the Terminal, I am getting the exact same message as what I originally faced with the deployment failure. Please see below.
I then tried doing a CD to the location and then ran the command restart. But surprisingly the command now works fine without any problem. Please see below.
What causes a command ${AIG_ROOT}/gs/bin64/restart to run when a CD is done and fail when executed from its full path?. What direction should I be looking into – please share your views.
Thanks
Pavan.