mr_ss
06-08-2001, 06:47 AM
I want to execute a program in a script.
the executable needs some shared libraraies at run time..
the code is like...
#test.sh
#script file that contains the binary.
#setting the path varaibles
LD_LIBRARY_PATH="/usr/local/nxserver/lib" NOTES_PATH="/opt/lotus/notes/latest/linux:/local/notesdata"
PATH="$PATH:$NOTES_PATH:/opt/lotus/notes/latest/linux/res/C"
#calling the executable file here
/usr/local/bin/nxserver databasePath
#databasePath is command line argument
now when i run this script it gives me an error message that "can not find shared libraries"
However if i define the above path variables in the /etc/profile, logout and then do login again,the script works fine.
can anybody tell me is it possible to do that without defining the path variables in the /etc/profile.Any alternate solution to this?
Thanks in advance!!!
the executable needs some shared libraraies at run time..
the code is like...
#test.sh
#script file that contains the binary.
#setting the path varaibles
LD_LIBRARY_PATH="/usr/local/nxserver/lib" NOTES_PATH="/opt/lotus/notes/latest/linux:/local/notesdata"
PATH="$PATH:$NOTES_PATH:/opt/lotus/notes/latest/linux/res/C"
#calling the executable file here
/usr/local/bin/nxserver databasePath
#databasePath is command line argument
now when i run this script it gives me an error message that "can not find shared libraries"
However if i define the above path variables in the /etc/profile, logout and then do login again,the script works fine.
can anybody tell me is it possible to do that without defining the path variables in the /etc/profile.Any alternate solution to this?
Thanks in advance!!!