脚本
if ( ! $?LD_LIBRARY_PATH ) then setenv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/libendifif ( ! $?LIBPATH ) then setenv LIBPATH /lib:/usr/lib:/usr/local/libendifsetenv PROJECT_HOME ${HOME}/tomcatsetenv JAVA_HOME ${PROJECT_HOME}/jdk1.5.0_16setenv LANG zh_CNif
( -`uname -s` == '-HP-UX' ) then setenv JAVA_HOME /opt/java1.5 setenv LANG zh_CN.hp15CNendifif ( -`uname -s` == '-AIX' ) then setenv JAVA_HOME /usr/java5_64 setenv LANG zh_CN.GB18030 setenv AIXTHREAD_SCOPE S setenv AIXTHREAD_MUTEX_DEBUG OFF setenv AIXTHREAD_COND_DEBUG
OFF setenv AIXTHREAD_RWLOCK_DEBUG OFF endifsetenv JAVA_BINDIR ${JAVA_HOME}/jre/binsetenv JAVA_ROOT ${JAVA_HOME}setenv JRE_HOME ${JAVA_HOME}/jresetenv PATH ${JAVA_HOME}/bin:${PATH}setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}setenv LIBPATH ${LIBPATH}setenv CLASSPATH
./${PROJECT_HOME}/bin:${JAVA_HOME}/jre/lib:${JAVA_HOME}/libalias all "stopproject;startproject;showlog " alias jsp "cd ${PROJECT_HOME}/webapps/project/WEB-INF/jsp " alias js "cd ${PROJECT_HOME}/webapps/project/WEB-INF/jsp/js " alias startproject "cd ${PROJECT_HOME}/bin;
./startup.sh ; rm -rf ${PROJECT_HOME}/work/* " alias qstartproject "cd ${PROJECT_HOME}/bin; ./startup.sh quick; rm -rf ${PROJECT_HOME}/work/* " alias stopproject "cd ${PROJECT_HOME}/bin; ./clearall.sh " alias dstopproject "cd ${PROJECT_HOME}/bin; ./clearall.sh
dump " alias jdbc "cd ${PROJECT_HOME}/webapps/project/WEB-INF/classes " alias showproject "ps -ef| grep ${LOGNAME}| grep '/java '| grep -v grep " alias project "cd ${PROJECT_HOME}/webapps/project" alias lib "cd ${PROJECT_HOME}/webapps/project/WEB-INF/lib "
alias bin "cd ${PROJECT_HOME}/bin " alias conf "cd ${PROJECT_HOME}/webapps/project/WEB-INF/conf " alias search "cd ${PROJECT_HOME}/webapps/project/WEB-INF/classes/search " alias tomconf "cd ${PROJECT_HOME}/conf " alias log "cd ${PROJECT_HOME}/bin/local " alias
tomlog "cd ${PROJECT_HOME}/logs " alias showlog "tail -f ${PROJECT_HOME}/logs/tomcatconsole.log " alias startw "cd ${PROJECT_HOME}/bin; sh startwtomcat.sh " alias stopw "cd ${PROJECT_HOME}/bin; ./wtomcat.csh stop & " alias showw "cd ${PROJECT_HOME}/bin; ps
-ef| grep project| grep wtomcat.csh| grep -v grep " alias rlog "rm -f ${PROJECT_HOME}/bin/local/* ; rm -rf ${PROJECT_HOME}/work/* " alias mlog "rm -rf ${PROJECT_HOME}/bin/local/* ; rm -rf ${PROJECT_HOME}/work/* ; rm -rf ${PROJECT_HOME}/bin/logs/* ; rm -f ${PROJECT_HOME}/logs/*.log
" alias showtype "cat ${PROJECT_HOME}/webapps/project/WEB-INF/classes/serverInfo.properties | grep -i 'servertype=' " alias crp "cd ${PROJECT_HOME}/bin; sh crp.sh " alias ll "ls -l " alias bakproject "cd ${PROJECT_HOME}/webapps; tar -zcvpf project01xw_80_`date
+%F`_bak.tgz project; cd -"if ( -`uname -r| grep '2.6.5'|wc -l ` == '-1' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/suse/suse9:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/suse/suse9/jdk32bit:${PROJECT_HOME}/projectlib/suse:${LD_LIBRARY_PATH}endifif
( -`uname -r| grep '2.6.16'|wc -l ` == '-1' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/suse/suse10:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/suse/suse10:${PROJECT_HOME}/projectlib/suse:${LD_LIBRARY_PATH}endif if ( -`uname -a| awk '{print
$3}'` == '-11.11' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/hp/hp11.11:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/hp/hp11.11:${PROJECT_HOME}/projectlib/hp:${LD_LIBRARY_PATH}endif if ( -`uname -a| awk '{print $3}'` == '-11.23' ) then
setenv LIBPATH ${PROJECT_HOME}/projectlib/hp/hp11.23:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/hp/hp11.23:${LD_LIBRARY_PATH}endifif ( -`uname -s` == '-AIX' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/aix/aix5.3/jdk64bit:${LIBPATH} setenv
LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/aix/aix5.3/jdk64bit:${PROJECT_HOME}/projectlib/aix/aix5.3:${LD_LIBRARY_PATH}endif