?? startproxy
字號:
#!/bin/ksh####################################################################### Start proxy system### check to see if the PROXY system is downing#clearUSERID=$LOGNAME#TMP_DIR=$PWDcd $PROXY_BIN_DIRPROXY_PROCESS=`ps -ef | grep "$LOGNAME" | grep "smproxy" | grep start |grep -v grep`if [ "$PROXY_PROCESS" != "" ]then echo "PROXY has already been started!"; echo; echo "Please shutdown it first if you want to restart PROXY."; sleep 2; exit;fipara=`expr $1 + 1`i=1while [ $i -lt $para ]doPROXY_PROCESS=`ps -ef | grep "$LOGNAME" | grep "smproxy start$i" | grep -v grep`if [ "$PROXY_PROCESS" = "" ]then## start SM proxy process echo "Startup SM proxy$i" TRCFILE=$PROXY_TMP/smproxy.trc OUTFILE=$PROXY_TMP/smproxy.out smproxy start$i 1>$TRCFILE if [ $? = 1 ] then echo ; echo "Failed to start SM proxy$1 "; sleep 2; exit 1 fifii=`expr $i + 1`doneecho -n "PROXY is starting, please wait ...."#*****************************************************************************## - Wait for cs to start up#while [ true ]doi=1 sleep 5; while [ $i -lt $para ] do PROXY_PROCESS=`ps -ef | grep "$LOGNAME" | grep "smproxy" | grep "start$i" | grep -v grep` if [ "$PROXY_PROCESS" = "" ] then break; fi i=`expr $i + 1`; done if [ "$PROXY_PROCESS" != "" ] then break; else echo -n "."; sleep 1; fidoneechoecho "proxy has started";echoechoecho "======================================="echo "PROXY system is successfully started up!"echo "======================================="sleep 2 cd $TMP_DIR
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -