记录拨号上网的公网地址

#!/bin/bash
datetime=`date +%Y-%m-%d`
ipaddress=`curl http://ip.3322.net`
echo $datetime','$ipaddress >> /home/pi/iphistory.txt

 

你可能感兴趣的:(记录拨号上网的公网地址)