On May 4, 2005, at 8:06 PM, Christopher Sawtell wrote:

The actual line connect speed is the number following the word CONNECT
which is ejected by the modem when the connection is made. You can see it
in the chat sequence. If you set the connection software to verbose
you will see the speed logged.

When I was on dialup I used a chat script to connect. Using the -r option you can sent its output to a file. It comes out in this format:
chat: Mar 16 21:31:09 CONNECT 41333


IIRC it just appends to the file each time so my script removed and re-created it (using 'touch') prior to running chat. Once the ppp link had been set up I had a couple of lines in my ip-up script to grab the number then throw it through a simple awk script for formatting into kbps. After all that it would be displayed :)

The downside is that it only reports the speed at connection-time.

Cheers,

- Dave

http://www.digistar.com/~dmann/




Reply via email to