[LON-CAPA-cvs] cvs: loncom /build CHECKRPMS

harris41 lon-capa-cvs@mail.lon-capa.org
Wed, 18 Dec 2002 14:37:46 -0000


harris41		Wed Dec 18 09:37:46 2002 EDT

  Modified files:              
    /loncom/build	CHECKRPMS 
  Log:
  BUG 1069 FIXED; adding a '-w 10' command line parameter to ping (it
  will only try for 10 seconds and then moves onto next server)
  
  
Index: loncom/build/CHECKRPMS
diff -u loncom/build/CHECKRPMS:1.12 loncom/build/CHECKRPMS:1.13
--- loncom/build/CHECKRPMS:1.12	Wed Dec 11 13:28:30 2002
+++ loncom/build/CHECKRPMS	Wed Dec 18 09:37:45 2002
@@ -196,7 +196,7 @@
     $FTPSERVER_noauth=~s/^.*?\@//;
     print($out
 	  "Trying $FTPSERVER_noauth...\n"); # Notify of attempts with ip name.
-    `ping -c 1 $FTPSERVER_noauth 2>/dev/null`; # Ping ftp server (you there?).
+    `ping -c 1 -w 10 $FTPSERVER_noauth 2>/dev/null`;#Ping ftp server (u there?)
     if ($?==0) # If the ftp server can be pinged.
       {
 	print($out "$FTPSERVER found...\n"); # Tell user ftp server is found.