On Fri, Dec 15, 2000 at 05:47:59AM +0800, [EMAIL PROTECTED] wrote:
> 我現在用 pon 命令只有通過 yawmppp 程序來監視modem有沒有通.
> 還有什麼命令可以判斷 modem 已經通了, [EMAIL PROTECTED]
> 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 [email protected]
| and converted from gb2312 to big5 by an automatic gateway.


回复