start_logging.sh.txt

来自「管理online的shell程序」· 文本 代码 · 共 22 行

TXT
22
字号
. /usr/local/bin/setenv.shLOGDIR=$INFORMIXHOME/logsLOGFILE=$LOGDIR/ontape-c.logcnt=`ps -ef | grep -v grep | grep -c "ontape -c"`if [ $cnt -eq 0 ]then    date | tee -a $LOGFILE    echo "Starting Informix Continuous Logging to Tape" | tee -a $LOGFILE    nohup $INFORMIXDIR/bin/ontape -c <<-EOF >>$LOGFILE 2>&1EOFelse    date | tee -a $LOGFILE    echo "Informix Continuous Logging to Tape already running - not restarted" | tee -a $LOGFILE    ps -ef | grep -v grep | grep "ontape -c" | tee -a $LOGFILEfi

⌨️ 快捷键说明

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