#! /bin/sh # # usage: netstat.sh # ./netstat.sh xl0 # # wenn ich nicht weiss, welches interface, mit ifconfig nachgucken # # # ##export LANG=C ##temp=/tmp/x.$$ ##trap 'rm -f $temp*; exit 1' ## ##netstat -i -b -I "$1" | grep ' $temp.1 ##ibytes=`cat $temp.1 | awk '{print $7}'` ##obytes=`cat $temp.1 | awk '{print $10}'` #ibytes netstat -i -b -I "$1" | grep '