📄 simple1.sh
字号:
#!/bin/sh# $Id: simple1.sh,v 1.3 2003/05/21 14:39:23 adam Exp $# test with one simple sgml recordLOG=simple1.log../../index/zebraidx -l $LOG init || exit 1../../index/zebraidx -l $LOG update simple1.xml || exit 1echo "Starting server " >> $LOG../../index/zebrasrv -l $LOG -S unix:socket &sleep 1test -f zebrasrv.pid || exit 2../api/testclient unix:socket -c 0 '@attr 1=/sgml/tag before' >> $LOG || exit 1../api/testclient unix:socket -c 1 '@attr 1=/sgml/tag inside' >> $LOG || exit 1../api/testclient unix:socket -c 0 '@attr 1=/sgml/tag after' >> $LOG || exit 1../api/testclient unix:socket -c 0 '@attr 1=/sgml/none after' >> $LOG || exit 1../api/testclient unix:socket -c 1 '@attr 1=/sgml before' >> $LOG || exit 1../api/testclient unix:socket -c 1 '@attr 1=/sgml inside' >> $LOG || exit 1../api/testclient unix:socket -c 1 '@attr 1=/sgml after' >> $LOG || exit 1echo "killing server " >> $LOGkill `cat zebrasrv.pid` || exit 3echo ok >> $LOG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -