On Mon, 24 Sep 2001, Amish Mehta wrote:
I am checking for the data transfer over particular interface. ifconfig reports the following
eth0 Link encap:Ethernet HWaddr 00:90:77:2E:88:3E inet addr:202.54.1.30 Bcast:202.54.1.255 Mask:255.255.255.0
[snip]
How do i know the data transfered in bytes? RX and TX. Is there any other way to find it out? How precise are the values reported?
cat /proc/net/dev
You may have to format the output, the lines are very long. It gives you the exact values in bytes at the time you run the command.
Why don't you write a gnome-panel applet to monitor this?
Philip