Created
October 15, 2012 06:36
-
-
Save mike-zhang/3891089 to your computer and use it in GitHub Desktop.
定时显示特定网卡信息供查看
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
if [ -f '/usr/bin/watch' ] | |
then | |
watch -n 1 -d ifconfig eth0 | |
#watch ifconfig eth0 | |
else | |
#while [ 1 ];do ifconfig eth0 ;sleep 1;clear;done | |
while [ 1 ] | |
do | |
ifconfig eth0 | |
sleep 1 | |
clear | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment