odate=`date +"%Y_%m_%d"`
cd /crmhome
echo "List core files now : "$odate > /tmp/core.out.$odate
for fp in `ls -d tux*`
do
find $fp -name "core*" -ls >/dev/null >>/tmp/core.out.$odate
done
for corepath in `find /crmhome -name "core*" 2>/dev/null | awk -F"core" '{print $1}' | sort -u`
do
cd /crmhome
cd $corepath
for corefile in `ls core*`
do
echo where | dbx tpengine $corefile >> /tmp/core.out.$odate
done
done
~
阅读(506) | 评论(0) | 转发(0) |