more conn.sh
#!/bin/bash
while true
do
conntime=`date '+%Y-%m-%d %H:%M:%S'`
conn=`ps -ef |grep LOCAL=NO |wc -l`
echo $send $ conntime>> /tmp/oraconn.log
sleep 10
done
#!/bin/bash
while true
do
conntime=`date '+%Y-%m-%d %H:%M:%S'`
conn=`ps -ef |grep LOCAL=NO |wc -l`
echo $send $ conntime>> /tmp/oraconn.log
sleep 10
done
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/91975/viewspace-2124778/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/91975/viewspace-2124778/