2010-04-10から1日間の記事一覧
#!/bin/sh #autoping.sh logfile='ping.log' if [ -z "$1" ]; then echo "Usage: autoping.sh hostname [hostname...]" exit 9 fi daytime="`date +"%b %d %H:%M:%S"` " while [ -n "$1" ]; do if ping -c 1 $1 > /dev/null; then echo "$daytime PING is re…