mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 02:13:55 +00:00
added updateIPToBoat2 script as example of how to use the IP address update CGI-BIN script on the server
This commit is contained in:
1 parent
767289f284
commit
c9e558c007
1 file changed
+8
Executable
+8
@@ -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
|
||||
Reference in new issue
Block a user