[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



Reply to: