View Single Post
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#3
Code:
#!/bin/sh
olddata=`/sbin/ifconfig wlan0|awk -F: '/TX bytes/ {print $3}'|cut -f1 -d' '`
while true; do
  sleep 1
  data=`/sbin/ifconfig wlan0|awk -F: '/TX bytes/ {print $3}'|cut -f1 -d' '`
  echo `expr \( $data - $olddata \) / 128` Kib/s
  olddata=$data
done
Why is there no setterm? Grrr...
 

The Following User Says Thank You to Benson For This Useful Post: