[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pppd problem -- modem *not* disconnecting when connection lost.



Mark W. Eichin writes:
> 
> 
> > Where www.sgi.com is someone on the net with a solid connection.  If they
> > are inaccessible, the script will kill and revive the connection.  
> 
> umm, *NO*. That's just the wrong thing to do (and unreliable as well.)
> (The killing is fine, I'm just arguing the choice of target host.)
> 
> If you're testing for the connection being "wedged" somehow, please,
> it's easy enough to find the address of your provider, right? 

ifconfig | perl -ne 'if(/P-t-P:(.*?)\s/){print "$1\n"}'

assuming you only have one "point to point" connection.

-- 
Carl Streeter                     |  "I'll forgive even GNU emacs as long 
streeter@cae.wisc.edu             |     as gcc is available" --Linus Torvalds
Just another Perl hacker          |  "Etiquette-wise, there is no proper time
Ask me about Debian/GNU Linux.    |    to use the phrase 'It sucks.'" --Dogbert



Reply to: