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

Re: 如何判斷 pon 已經使自己的modem與ISP連通?



On Fri, Dec 15, 2000 at 05:47:59AM +0800, benluo@etang.com wrote:
> 我現在用 pon 命令只有通過 yawmppp 程序來監視modem有沒有通.
> 還有什麼命令可以判斷 modem 已經通了, 這樣我就可以用一個
> shell script 自動收發 email 和 apt-get update; 
> apt-get upgrade 我的系統.思路如下

use "route -A inet -n" to find if you have an ppp interface.
or "netstat -r -n --inet" . You don't need to be root to use
netstat.

netstat -r -n --inet|grep ppp |head -n 1 |cut -c74-76

I also saw 
ifconfig |grep "^ppp" |cut -c 1-8

but you have to be root to use ifconfig, right?

-- 
Best regard
hashao

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: