Date: Sun, 18 May 2008 07:15:10 +0300 From: "Odhiambo Washington" <odhiambo@gmail.com> To: "Toni Schmidbauer" <toni@stderror.at> Cc: Matthias Apitz <matthias.apitz@oclc.org>, freebsd-questions@freebsd.org Subject: Re: measure traffic caused by pppd (UMTS) Message-ID: <991123400805172115sb12efe4u7bf32bbfff14d456@mail.gmail.com> In-Reply-To: <87wslu811h.wl%pinhead@bluebook.stderror.at> References: <20080502094646.GA3576@rebelion.Sisis.de> <87wslu811h.wl%pinhead@bluebook.stderror.at>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 16, 2008 at 11:08 PM, Toni Schmidbauer <toni@stderror.at> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?991123400805172115sb12efe4u7bf32bbfff14d456>