摘要:
#!/bin/bash# This script is used to test the status of a segment of the host alive# Edit Liwanhong 2011.08.11PATH=/usr/bin:/usr/sbin:$PATHexport PATH##Define the state of colorCOLOR_UNKNOW=$(echo -e "\033[31m Unknow \033[m")COLOR_ALIVE=$(echo -e "\033[32m Alive \033[m")IP="1 阅读全文