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

📄 add_logs1.sh.txt

📁 管理online的shell程序
💻 TXT
字号:
#!/usr/bin/ksh#################################################################################       Module:         add_logs1.sh#       Author:         Peter R. Schmidt#       Description:    Add logical logs - move them to the log dbs##       Change Log##         Date    Name               Description.................#       06/21/00  Peter R. Schmidt   Start Program################################################################################echoecho "Note: this script expects that you just initialized the Informix database"echo "and you created 3 logical logs in the root dbspace "echo "and that only the first log has been used so far"echo "and that the LTAPEDEV (log tape device) is set to /dev/null"echoecho "(That is a typical situtation)"echoonstat -lechoecho "Is that the case ?? (y/n)"read answerif [ $answer != y -a $answer != Y ]then	exitfi###############################################################################echoecho "How many logical logs do you want to end up with ?"read TOTAL_LOGSechoecho "Which DBSPACE do you want to move the logical logs to ?"read LOGICAL_DBSecho echo "Total Logs will be: $TOTAL_LOGS"echo "Logical Log DBSPACE will be: $LOGICAL_DBS"echoecho "Press <Enter> to continue <INTERRUPT> to quit"read answer###############################################################################onmode -u -ysleep 5onparams -a -d $LOGICAL_DBS onparams -a -d $LOGICAL_DBS onparams -a -d $LOGICAL_DBS echoecho "Press <Enter> to continue"read answerontape -s -L 0onparams -d -l 2 -yonparams -d -l 3 -yechoecho "Press <Enter> to continue"read answeronmode -lonmode -contape -aechoecho "Press <Enter> to continue"read answeronparams -d -l 1 -yechoecho "Press <Enter> to continue"read answerCNT=3while truedo	onparams -a -d $LOGICAL_DBS 	CNT=`expr $CNT + 1`	echo "Log $CNT added"	if [ $CNT = $TOTAL_LOGS ]	then		break	fidoneontape -s -L 0echoonmode -m

⌨️ 快捷键说明

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