From owner-freebsd-questions@FreeBSD.ORG Sat May 17 23:26:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD89C106568C for ; Sat, 17 May 2008 23:26:14 +0000 (UTC) (envelope-from pinhead@bluebook.stderror.at) Received: from stdin.stderror.at (stdin.stderror.at [83.65.196.90]) by mx1.freebsd.org (Postfix) with ESMTP id 623218FC16 for ; Sat, 17 May 2008 23:26:14 +0000 (UTC) (envelope-from pinhead@bluebook.stderror.at) Received: from bluebook.stderror.at (83-65-196-92.work.xdsl-line.inode.at [83.65.196.92]) by stdin.stderror.at (Postfix) with ESMTPA id BEE725C45; Sun, 18 May 2008 01:11:04 +0200 (CEST) Date: Fri, 16 May 2008 22:08:26 +0200 Message-ID: <87wslu811h.wl%pinhead@bluebook.stderror.at> From: Toni Schmidbauer To: Matthias Apitz In-Reply-To: <20080502094646.GA3576@rebelion.Sisis.de> References: <20080502094646.GA3576@rebelion.Sisis.de> User-Agent: Wanderlust Emacs Organization: stderror.at X-WWW-Home-Page: http://stderror.at X-PGP-Fingerprint: 53F2 28AE 8070 83E0 AFEC 0ABC BBF9 A34A 3ED1 3287 X-Operating-System: FreeBSD MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: measure traffic caused by pppd (UMTS) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2008 23:26:15 -0000 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 |