⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 harvest

📁 harvest是一个下载html网页得机器人
💻
字号:
#!/bin/sh## /etc/init.d/harvest - start/stop the httpd-related daemons## First, set up some useful variables.HOME=/; export HOMEPATH=/bin:/usr/ucb:/usr/sbin:/etc:/sbin; export PATHumask 022# the paths and parameters for things we run.R_GATHERD=/opt/harvest/gatherers/vsis-www/RunGatherdR_BROKER=/opt/harvest/brokers/vsis-www/RunBrokerBROKER_OPTS=-nocol		# Don't redo collection on startup### uncomment these if there seems to be a problem starting up.# RUNLOG_G=/usr/tmp/www-run-log.gatherd# RUNLOG_B=/usr/tmp/www-run-log.brokerRUNLOG_G=/dev/nullRUNLOG_B=/dev/nullcase $1 in'start')   echo "Starting Harvest daemons:" #>/dev/console   if [ -f ${R_GATHERD} ]; then       echo " gatherd...\c"	#>/dev/console#       /bin/su - wwwharv -c ${R_GATHERD} >${RUNLOG_G} 2>&1       ${R_GATHERD} >${RUNLOG_G} 2>&1   fi   sleep 2   if [ -f ${R_BROKER} ]; then       echo " broker...\c"	#>/dev/console#       /bin/su - wwwharv -c "${R_BROKER} ${BROKER_OPTS}" >${RUNLOG_B} 2>&1       ${R_BROKER} ${BROKER_OPTS} >${RUNLOG_B} 2>&1   fi   echo " done!" #>/dev/console   ;;'stop')   echo "Stopping Harvest daemons." #>/dev/console	pid=`/bin/ps -x | /usr/bin/awk -- '($5~/^gatherd/) {print $1}'`	if test "$pid"	then		kill $pid	fi	pid=`/bin/ps -x | /usr/bin/awk -- '($5~/^broker/) {print $1}'`	if test "$pid"	then		kill $pid	fi	;;*)	echo "usage: /etc/init.d/harvest {start|stop}"	;;esac

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -