[Swift-commit] r3537 - trunk/bin

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sun Aug 15 17:10:29 CDT 2010


Author: davidk
Date: 2010-08-15 17:10:29 -0500 (Sun, 15 Aug 2010)
New Revision: 3537

Modified:
   trunk/bin/swift
Log:
Test for both nc and netcat, use IP address rather than hostname for usage statistics


Modified: trunk/bin/swift
===================================================================
--- trunk/bin/swift	2010-08-15 18:25:13 UTC (rev 3536)
+++ trunk/bin/swift	2010-08-15 22:10:29 UTC (rev 3537)
@@ -87,7 +87,7 @@
 fi
 
 # Anonymous usage statistics
-LISTENER="bridled.ci.uchicago.edu"
+LISTENER="128.135.125.18"
 PORT="9999"
 
 if [ -z "$SWIFT_USAGE_STATS" ]; then
@@ -111,8 +111,11 @@
 
 NC=`which nc 2>&1`
 if [ ! -x "$NC" ]; then
-    echo "warning: unable to find nc"
-    SWIFT_USAGE_STATS=0
+    NC=`which netcat 2>&1`
+    if [ ! -x "$NC" ]; then
+        echo "warning: unable to find nc"
+        SWIFT_USAGE_STATS=0
+    fi
 fi
 
 if [ "$SWIFT_USAGE_STATS" = 1 ]; then
@@ -148,5 +151,3 @@
 fi
 
 exit $return_code
-
-




More information about the Swift-commit mailing list