added updateIPToBoat2 script as example of how to use the IP address update CGI-BIN script on the server

This commit is contained in:
Axel Uhl committed 2012-02-29 11:30:37 +01:00
1 parent 767289f284
commit c9e558c007
1 file changed
+8
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: updateIPToBoat2 <port>"
else
ip=`ipconfig /all | grep Bevorzugt | grep IPv4 | sed -e 's/^.*: \([^(]*\)(.*$/\1/'`
echo IP address is $ip
wget -O /tmp/updateIPToBoat2.out "http://bugzilla.sapsailing.com/cgi-bin/updateRedirect?name=boat2&ip=$ip&port=$1"
fi