°Ô½Ã¹° 42°Ç
   
[½ºÅ©¸³Æ®] ½Ç½Ã°£ Æ®·¡ÇÈ Ã¼Å© ½ºÅ©¸³Æ®
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2014-08-12 (È­) 14:06 Á¶È¸ : 5774
#!/bin/bash 

echo "Time : receive (Kbit/Sec) / transmit (Kbit/Sec)"
while ( true ) ;
do
rx1=`grep eth0 /proc/net/dev | awk '{print $1}' | sed 's/.*://'`
tx1=`grep eth0 /proc/net/dev | awk '{print $9}'`

sleep 3

rx2=`grep eth0 /proc/net/dev | awk '{print $1}' | sed 's/.*://'`
tx2=`grep eth0 /proc/net/dev | awk '{print $9}'`
rx3=$(((rx2-rx1)/128/3))
tx3=$(((tx2-tx1)/128/3))

echo "`date '+%k:%M:%S'` : $rx3 / $tx3"
done


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com