tkpppload v0.3

screenshot

Download tkpppload-0.3.tgz

This is a quick program in a similar vein as xpppmon. I found 'xpppmon' somewhat unwieldy (had to have the server running, needed XView headers, etc.).

Therefore I have decided to write my own version, one that is much easier to code and use (hooray for TclTk!), not to mention that it let's me learn ioctl related programming (ok, so it's just a bare scratch at the topic, but I gotta start somewhere).

The display window shows incoming and outgoing data (incoming on bottom [green], outgoing on top [red]). The window contents scrolls across as new samples are received. The sample rate right now is 1s, but I'll be making everything (colors, interval, etc.) configurable (resources and command line switches).

Installing
If your "wish" is somewhere else than "/usr/local/bin/wish", then edit "tkpppload" and modify the first line as needed.

If you want to edit the font or the colors, these are defined right at the beginning of the script, so for the time being you can edit these here.

Run "make" to create a shared library (pppstat.so) which is used by the TclTk script (for gettings information on the ppp link).

Run "make install" as root (or change the install directory in the Makefile to somewhere you have write privilidges to).

One final thing you have to do is edit your /etc/ppp/ip-up.local (or its equivalent on your system; this file gets run when an ppp connection has been established) and put in the lines:

echo `date +"%s"` > /etc/ppp/UP
chmod a+r /etc/ppp/UP

For now I am imitating what xpppload does, until I can think of something cleaner. Also in your /etc/ppp/ip-down you might want to remove this file (UP).

Future improvements

Tested/Developed on


Comments, queries, bugs, fixes, ... send to
Maciej Kalisiak
mac@dgp.utoronto.ca


Last modified on: Thu Apr 2 19:38:14 EST 1998 HOME Maciej Kalisiak <mac@dgp.utoronto.ca>