Gevaerts Frank wrote:
> On Fri, 21 May 1999, Bogdan Taru wrote:
>
> >
> > Hi,
> > Is there a Unix utility which checks if a connection is up, and returns
> > an easy to interpret answer(like 1 or 0, preferably...)? If so, which one
> > (yes, I know, most of you will think of 'ping'...)?
>
> test -n "`ifconfig | grep ppp0`"
> OK, it's not a single utility, but you could make it an alias.
>
> Frank
>
> >
> > Have fun,
> > bogdan
> >
> >
You could aliase this too if you like, but it so short that you'll get used
to typeing it out real quick. I use it regularly. Here goes:
pppstats -w1
this will keep running until you ^c out of it and displays the traffic that
passes through your ppp interfaces every second.
Enjoy.