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

📄 start-mast.txt

📁 EM算法的改进
💻 TXT
字号:
#!/bin/sh## $Id: start-mast.txt 1339 2006-09-21 19:46:28Z tbailey $# $Log$# Revision 1.8  2005/10/07 05:33:55  nadya# keep uniform name MEME_LOGS throughout scripts.## Revision 1.7  2005/10/05 06:18:35  nadya# use full path for "rm". Asssume everybody has /bin/rm.## Revision 1.6  2005/10/02 05:48:07  nadya# use variable to call meme-client## Revision 1.5  2005/08/25 21:04:41  nadya# check for config file existance## Revision 1.4  2005/08/24 00:32:55  nadya# use csh scripts for now when starting the servers## Revision 1.3  2005/08/12 17:51:03  nadya# use meme_config file to set variables## Revision 1.2  2005/08/09 23:08:04  nadya# change completely. eliminates need for start-server, mast.init.start, mast-server.## Revision 1.1.1.1  2005/07/29 00:02:18  nadya# Importing from meme-3.0.14, and adding configure/make## load localization variables configured during installif [ -f @MEMEDIR@/etc/meme_config ] ; then    . @MEMEDIR@/etc/meme_configelse    echo "@MEMEDIR@/etc/meme_config does not exist. Meme installation is incomplete"    exit 1fi########################################################            define functions######################################################## Set logfilefunc_log () {    log=$MEME_LOGS/mast.startup.log}# Prints usage commandfunc_usage () {    func_log    echo "Uses meme-client to check if server is running."    echo "If not, starts the mast-server and updates"    echo "file $log"}# Check if server is alive   func_ping() {    tmpfile=/tmp/start-mast.$$    echo "ping" > $tmpfile    $MEME_BIN/$MEME_CLIENT_EXEC $MAST_PORT $HOST $tmpfile 1    ALIVE=$?    if [ -f $tmpfile ] ; then       /bin/rm -f $tmpfile    fi}# If server is already running do nothing, otherwise# start the server, and update the server logfunc_start () {    if [ $ALIVE -eq 0 ] ; then        echo Mast-server is already running    else        echo Starting mast-server ...        func_log        touch $log        echo "" >> $log        date >> $log        nohup $MEME_BIN/mast-server $MAST_PORT $MEME_BIN/$MAST_SH >> $log 2>&1 &        echo Mast-server started      fi}########################################################            main#######################################################if [ $# -gt 1 ] ; then    func_usage 1>&2    exit 1else    func_ping    func_startfi

⌨️ 快捷键说明

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