#!/bin/bash datetime=`date +%Y-%m-%d` ipaddress=`curl http://ip.3322.net` echo $datetime‘,‘$ipaddress >> /home/pi/iphistory.txt
时间: 2024-10-14 10:46:50
#!/bin/bash datetime=`date +%Y-%m-%d` ipaddress=`curl http://ip.3322.net` echo $datetime‘,‘$ipaddress >> /home/pi/iphistory.txt