记录拨号上网的公网地址

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

 

posted @ 2016-02-05 21:03  dongdonggeorge  阅读(234)  评论(0编辑  收藏  举报