管理online的shell程序
源代码在线查看: log_num_threads.sh.shtml
PRS Technologies, Inc. - script: log_num_threads.sh A.CLASS1 { background-color: #000066; color: white; letter-spacing: 0.2ex; font-size: 14pt; text-decoration: none; } A:hover.CLASS1 { background-color: #ffffcc; color: black; } --> defaultStatus = "PRS Technologies Inc. - script: log_num_threads.sh"; Home Associates References Downloads Elite Links Contact Us log_num_threads.sh #!/usr/bin/ksh ############################################################################### # # Module: log_num_threads.sh # Author: Peter R. Schmidt # Description: Log number of Informix user threads (from onstat -u) # # Change Log # # Date Name Description................. # 03/29/01 Peter R. Schmidt Start Program # ############################################################################### . /elite/custom/run.elite LOGDIR=`onstat -c | egrep "^MSGPATH" | awk '{print $2;}` LOGDIR=`dirname $LOGDIR` LOGFILE="$LOGDIR/user_threads.log" XDATE=`date +%D-%T` THREADS=`onstat -u | grep "maximum concurrent" | awk '{printf "Current: %d, Maximum: %d",$1,$5}'` echo "$XDATE $THREADS" >> $LOGFILE ############################################################################### Home Associates References Downloads Elite Links Contact Us