--判断程序是否在运行
PROCESS_PATH1=/app/nt_intel/zte_ips/bin
PROCESS_NAME2=zte_ips
PROCESS_ID2=`ps -ef|grep $PROCESS_NAME2|grep -v "grep"|awk '{print $2}'`
PROCESS_ID8=`ps -ef|grep $PROCESS_NAME2|grep -v "grep"|awk '{print $8}'`
cur_date=`date`
if ( test -n $PROCESS_ID2 )
then
echo "[$cur_date] $PROCESS_NAME2 is running,pid=$PROCESS_ID2,$PROCESS_ID8"
else
echo $PROCESS_NAME2" is not running,start now..."
cd $PROCESS_PATH1
echo $PROCESS_NAME2" is not running,starting now..."
nohup $PROCESS_NAME2 &
echo $PROCESS_NAME2" is not running,starting over"
exit
fi
0,5,10,15,20,25,30,35,40,45,50,55 * * * * su - nt_intel /shell/water.sh >> /shell/log/water.log
su - nt_intel <
/shell/zteips.sh
exit
<
-------------------------------------------
su - mqm <
cd /app/nt_intel/ele_ds/bin
ps -ef|grep ele_ds|grep -v grep|awk '{print $2}' | xargs -i kill {}
nohup ele_ds &
<
-------------------------------------------------
echo "-----------------------`date`-----------------------"
cnt1=`ps -ef|grep GET_SERVICE_USED_INFO|grep nt_tele|grep -v 'grep' | wc -l`
echo $cnt1
if [ $cnt1 -eq 0 ]
then
echo "GET_SERVICE_USED_INFO restarting!-!-"
cd /app/nt_tele/config_tux/bin
nohup GET_SERVICE_USED_INFO &
else
echo "GET_SERVICE_USED_INFO exist!Nothing!"
fi
0,15,30,45 * * * * su - nt_tele /shell/AcctInfoMonitor.sh
---------------------------------------------------------------
cnt=`ps -ef|grep tbl_fld_autosep|grep -v grep| wc -l`
if [ $cnt -gt 0 ]; then
pid=`ps -ef|grep tbl_fld_autosep|grep -v grep|awk '{print $2}'`
for element in $pid
do
kill -9 $element
done
fi
---------------------------------------------------------------
. ~/.profile
ps -ef |grep OWE_SWITCH|grep nt_batch|grep -v grep|awk '{ print $2 }'|xargs kill -9
date
nohup OWE_SWITCH GRO &
nohup OWE_SWITCH r G 1 131001905512 &
nohup OWE_SWITCH r G 131001905513 131002125764 &
nohup OWE_SWITCH r G 131002125765 131005164532 &
nohup OWE_SWITCH r G 131005164533 131005532024 &
nohup OWE_SWITCH r G 131005532025 131006006106 &
nohup OWE_SWITCH r G 131006006107 131006143861 &
nohup OWE_SWITCH r G 131006143862 131006254297 &
nohup OWE_SWITCH r G 131006254298 131006335702 &
nohup OWE_SWITCH r G 131006335703 999999999999 &
nohup OWE_SWITCH r R 1 131001905512 &
nohup OWE_SWITCH r R 131001905513 131002125764 &
nohup OWE_SWITCH r R 131002125765 131005164532 &
nohup OWE_SWITCH r R 131005164533 131005532024 &
nohup OWE_SWITCH r R 131005532025 131006006106 &
nohup OWE_SWITCH r R 131006006107 131006143861 &
nohup OWE_SWITCH r R 131006143862 131006254297 &
nohup OWE_SWITCH r R 131006254298 131006335702 &
nohup OWE_SWITCH r R 131006335703 999999999999 &
nohup OWE_SWITCH r V 1 131001905512 &
nohup OWE_SWITCH r V 131001905513 131002125764 &
nohup OWE_SWITCH r V 131002125765 131005164532 &
nohup OWE_SWITCH r V 131005164533 131005532024 &
nohup OWE_SWITCH r V 131005532025 131006006106 &
nohup OWE_SWITCH r V 131006006107 131006143861 &
nohup OWE_SWITCH r V 131006143862 131006254297 &
nohup OWE_SWITCH r V 131006254298 131006335702 &
nohup OWE_SWITCH r V 131006335703 999999999999 &
nohup OWE_SWITCH r S &
阅读(1268) | 评论(0) | 转发(0) |