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

📄 stop01.sh

📁 harvest是一个下载html网页得机器人
💻 SH
字号:
#!/bin/sh# $Id: stop01.sh,v 1.5 2003/05/24 22:34:48 adam Exp $# test start and stop of the server with -1LOG=stop01.logrm -f $LOGecho "initializing" >>$LOGmkdir -p reg../../index/zebraidx -l $LOG -c zebra1.cfg init || exit 1#create a base to test on../../index/zebraidx -l $LOG -c zebra1.cfg update records  || exit 1#kill old server (if any)test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`echo "Starting server with -1 (one shot)..." >>$LOG../../index/zebrasrv -1 -c zebra1.cfg -l $LOG tcp:@:9901 &sleep 1echo "  checking that it runs... " >>$LOGtest -f zebrasrv.pid || exit 1PID=`cat zebrasrv.pid`ps -p $PID |grep $PID >/dev/null || exit 1echo "  connecting to it..." >>$LOG../api/testclient localhost:9901 utah >>$LOG || exit 1sleep 1echo "  checking that server does not run any more" >>$LOGps -p $PID | grep $PID >/dev/null && exit 1# clean uprm -rf reg zebrasrv.pid

⌨️ 快捷键说明

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