|
楼主 |
发表于 2003-8-12 11:49:04
|
显示全部楼层
最初由 javalee 发表
要不然你在进程中找到上网的进程名,根据他来判断吧~~;)
去掉addr:?用AWK吧~~;)
while true;do ps -e|grep adsl;sleep 2;done
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
576 pts/0 00:00:00 adsl-connect
..................................................................
..................................................................
没问题 运行lip就有时down!
那个addr:怎么去掉? awk我不懂的 |
|