
#!/bin/sh
source /etc/profile
proc_name="iget_spider"
#current_time=`date +%Y%m%d+%H%M%s`
NUM=`ps -ef|grep $proc_name|grep -v grep|wc -l`
proc=`ps -ef|grep $proc_name|grep -v grep`
echo "--------------num is:"$NUM ";time is :"$(date) ";proc is " $proc "-------------"
if [ $NUM -eq 0 ]
then
echo -e $NUM
echo -e "the spider not alive,start spider"
...