From owner-freebsd-questions@FreeBSD.ORG Sun May 18 04:15:11 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 AA593106566B for ; Sun, 18 May 2008 04:15:11 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 64A558FC19 for ; Sun, 18 May 2008 04:15:11 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so805861ywe.13 for ; Sat, 17 May 2008 21:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=orvm57Ln0NPdQKA1K+ckp0gRfUoqBPgF652Z/RA5L1g=; b=Hqsy0j4IHG5eAJlnZUlmHi/nY9n3BIYToSkNmxJpPAaqbkpN+9cbrIZ9Xdmq4KSHqLJxmur6xHwLA3cUZ+RjD4OYmuqOwESgql6vvLacN+AI2b8j/uZnxTm5P5K7tqVG7/5IgzzRgFI0IkH4dh3XylTQEmpLqL7TjnD2zsmJjUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=T3q6UpOTBkP6wvzIVzrv17mfULpt8FZbuyIDV3gfq0jJgpTNPa/8rtSciGu3gZitW6x9Nag38zTaevtSrETQ51YvMwAEMavvNyQKhU1D0UCO5v7zWhvP0rrVd+5O5vodj7eei3u9hBWPSkQ+xTBBeRhNEOCHcV72EqmcpGfCKwI= Received: by 10.150.83.29 with SMTP id g29mr5042437ybb.142.1211084110625; Sat, 17 May 2008 21:15:10 -0700 (PDT) Received: by 10.150.219.9 with HTTP; Sat, 17 May 2008 21:15:10 -0700 (PDT) Message-ID: <991123400805172115sb12efe4u7bf32bbfff14d456@mail.gmail.com> Date: Sun, 18 May 2008 07:15:10 +0300 From: "Odhiambo Washington" To: "Toni Schmidbauer" In-Reply-To: <87wslu811h.wl%pinhead@bluebook.stderror.at> MIME-Version: 1.0 References: <20080502094646.GA3576@rebelion.Sisis.de> <87wslu811h.wl%pinhead@bluebook.stderror.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Matthias Apitz , 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: Sun, 18 May 2008 04:15:11 -0000 On Fri, May 16, 2008 at 11:08 PM, Toni Schmidbauer wrote: > 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. > ..as in from ppp.linkdown? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Oh My God! They killed init! You Bastards!" --from a /. post