#!/bin/bash datetime=`date +%Y-%m-%d` ipaddress=`curl http://ip.3322.net` echo $datetime‘,‘$ipaddress >> /home/pi/iphistory.txt
时间: 2024-12-15 00:11:04
#!/bin/bash datetime=`date +%Y-%m-%d` ipaddress=`curl http://ip.3322.net` echo $datetime‘,‘$ipaddress >> /home/pi/iphistory.txt