Date: Fri, 16 May 2008 22:08:26 +0200 From: Toni Schmidbauer <toni@stderror.at> To: Matthias Apitz <matthias.apitz@oclc.org> Cc: freebsd-questions@freebsd.org Subject: Re: measure traffic caused by pppd (UMTS) Message-ID: <87wslu811h.wl%pinhead@bluebook.stderror.at> In-Reply-To: <20080502094646.GA3576@rebelion.Sisis.de> References: <20080502094646.GA3576@rebelion.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 2 May 2008 11:46:46 +0200, Matthias Apitz wrote: > Sometimes when I travel around and can't see any usable WLAN I'm using > the UMTS and PPPD, which works well but of course one must pay for this; mb=`netstat -ib|awk '/tun0.*Link/ {mb=($6+$9)/1024^2; printf "%.2f",mb}'` date=`date "+%s` echo "MB Transfered: $mb" echo "$date $mb" >> ~/tmp/grps_kosten.txt works for me. i'm using the above code snipped after shutting down pppd. hth toni -- If you understand what you're doing, you're | toni at stderror dot at not learning anything. | Toni Schmidbauer -- Anonymous |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87wslu811h.wl%pinhead>