0 Members and 1 Guest are viewing this topic.
wget 'http://fritz.box/cgi-bin/webcm?getpage=../html/de/menus/menu2.html&var:lang=de&var:menu=home&var:pagename=home' -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>' | grep -Ev "^0+\."
wget 'http://192.168.2.1' -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>' | grep -Ev "^0+\."
88.69.6.152
curl: (51) SSL peer certificate or SSH remote key was not OK
ssl_verify_host=0
curl --insecure
curl -T ip.txt sftp://user:passwd@server:22 --insecure
#!/bin/bash# NAME: myIPscript.sh# LOCA: /home/BENUTZERNAME/myIPscript.sh# DESC: schreibt WAN-IP in ip.txt, sendet ip.txt an Servercurl ifconfig.me > /tmp/ip.txt && curl -T /tmp/ip.txt sftp://user:passwd@server:22 --insecure
chmod +x myIPscript.sh...echo 'SHELL='$SHELL && echo 'PATH='$PATH
crontab -e
# ... KommentareSHELL=/bin/bashPATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games@hourly /home/BENUTZERNAME/myIPscript.sh > /dev/null