标签:else not -- access ash ide site dev $#
#! /bin/bashif [ $# -ne 1 ];then
echo "usage:$0"
exit 4
fi
wget -q -T 2 --spider --tries=2 -O /dev/null $1
if [ $? -eq 0 ];then
echo "$1 could access."
else
echo "$1 could not access."
fi
~
标签:else not -- access ash ide site dev $#
原文地址:http://blog.51cto.com/546136/2061874