#!/bin/sh
awk '/(eth|wlan)/{ print $1, $2, $10}' /proc/self/net/dev | while read iface rx tx; do
echo "Interface: $iface";
echo "Empf.: $((rx/1024)) MB";
echo "Ges.: $((tx/1024)) MB";
echo "---------------------------------"
done
./nw-day-stat.sh > nw-stat-$(date +%Y-%m-%d).log
catweasel schrieb:Thx! Zum Auslesen von "/proc/self/net/dev" habe ich mir ein Perl-Skript zusammengeschraubt.
Ich lasse es von "~/.kde4/shutdown/" aufrufen und zur Sicherheit (falls der Strom ausfällt) von cron alle 10 Minuten.