#!/bin/bash old=`tail -n1 IP.txt` new=`nslookup www.google.com | grep -A1 google | grep Address | awk '{print $2}'` if [ "$new" != "$old" ];then date >> IP.txt echo $new >> IP.txt fi
0 意見:
張貼留言