On Sun, Oct 22, 2000 at 01:08:18AM -0200, Jeronimo Pellegrini wrote:
> Ok, /var/log/ppp.log has more information that you need, as you
> said in the last message...
> But I realize that a script that checks if "ifconfig|grep ppp0"
> returns a line would not only work when you're checking the
> connection right after calling pon, but it could also be called
> from Emacs (I've checked your message - you use VM, right?), if you
> want to know if the connection is still alive: you'd just have to
> bind it to a key combination...
> Would this work?
Probably wan't to make sure you've got an address. Here's one variant.
$ /sbin/ifconfig ppp0 | grep 'inet addr:' | sed 's=.*inet
That's all one line. It shouldn't return anything if you don't have an
inet addr for ppp0. Otherwise, it'll return the address.
Command not found