below is o/p
$ type find
find is /usr/bin/find
$ type ls
ls is a tracked alias for /usr/bin/ls
---------- Post updated at 05:01 AM ---------- Previous update was at 04:12 AM ----------
the file is failing when i am running the profile file as below
$ vi $HOME/.profile.nsm
"/export/home/asgadmin/.profile.nsm" 38 lines, 595 characters
#
# @(#)local.profile 1.6 98/02/06 SMI
#
set vx
stty istrip
PATH=$PATH:/usr/sbin:/usr/bin:/usr/ucb:/etc:/usr/openwin/bin:.:/usr/dt/bin:/usr/local/bin
export PATH
MOZILLA_HOME=/usr/dt/bin
export MOZILLA_HOME
LANG=C
export LANG
LC_ALL=C
export LC_ALL
MMSHOME=/mms/MMS
export MMSHOME
. /export/home/safeprofile
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ISMROOT/shared_lib
export LD_LIBRARY_PATH
if [ -f /etc/conf/ism/ismroot ]
then
ISMROOT=`cat /etc/conf/ism/ismroot`
export ISMROOT
. $ISMROOT/var/config/ism/ismprofile
fi
#LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ISMROOT/shared_lib
. /mms/MMS/NSM/.NSMprofile #ERInsmcom
it is failing while reading /etc/conf/ism/ismroot, because of this
ISMROOT variable is assigned null variable
file .profile.nsm is called through another script
whose code is as below
$ cat ./mms_alarm.ksh
#! /bin/ksh
set vx
CLASSPATH=/export/home/asgadmin/Mtce_Progs
export CLASSPATH
. $HOME/.profile.nsm
compress /var/opt/MMS/NSM/dumpAlarm.1*
find /var/opt/MMS/NSM/dumpAlarm.1*.Z -mtime +30 -exec rm {} \;
/mms/MMS/NSM/bin/DumpISM-Alarm.sh
ls /var/opt/MMS/NSM | grep dumpAlarm.1 > alarm.lst
mydir=`tail -1 alarm.lst`
cp /var/opt/MMS/NSM/$mydir $HOME/Mtce_Progs/MMS_Alarm/Alarm.doc
java MMS_Alarm.AlarmMain
it is giving below error in o/p
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory
./mms_alarm.ksh[7]: 28150 Killed
./mms_alarm.ksh[7]: /var/config/ism/ismprofile: not found
---------- Post updated at 05:03 AM ---------- Previous update was at 05:01 AM ----------
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory
above error is coming when we try to
do
cat /etc/conf/ism/ismroot
through script , command line this is working fine
---------- Post updated at 06:12 AM ---------- Previous update was at 05:03 AM ----------
guys,
my system is solaris 5.10 and i have serached on net and i have found this is some library dependency error
the error is
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory
it says that o/p of
ldd /usr/bin/cat
should be like
vhost.so => (file not found)
i.e vhost.so is not present in library
but my o/p is coming
ldd /usr/bin/cat
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
/lib/libm/libm_hwcap1.so.2
/platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1
all above files are present and having execute permissions
anyone having any idea about this
link to article on net is
How to solve library dependency errors in Solaris using pkg-get tool /zeroconf