管理online的shell程序

源代码在线查看: log_num_threads.sh.shtml

软件大小: 65 K
上传用户: ddddong
关键词: online shell 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

												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 																																											

相关资源