Index: trunk/ippTasks/replicate.pro
===================================================================
--- trunk/ippTasks/replicate.pro	(revision 18405)
+++ trunk/ippTasks/replicate.pro	(revision 18409)
@@ -1,12 +1,13 @@
 ## replicate.pro : tasks for data replication : -*- sh -*-
 ## this file contains the tasks for maintaining duplicates as needed in Nebulous
-## these tasks use the books replicatePending and regPendingExp
+## these tasks use the books replicatePending
 
 # test for required global variables
 check.globals
 
-$NEB_DB   = nebulous
-$NEB_USER = nebulous
-$NEB_PASS = @neb@
+$NEB_DB    = nebulous
+$NEB_HOST  = alala
+$NEB_USER  = jhipp
+$NEB_PASS  = jhipp
 
 $LOGSUBDIR = $LOGDIR/replicate
@@ -42,6 +43,6 @@
 
 macro set.host.for.replicate
-  if ($0 != 3)
-    echo "USAGE: set.host.for.replicate (host name)"
+  if ($0 != 2)
+    echo "USAGE: set.host.for.replicate (hostname)"
     break
   end
@@ -54,8 +55,8 @@
 # parse volume name
 
-  if ("$host" == "NULL")
+  if ("$1" == "NULL")
     host anyhost
   else
-    host $host
+    host $1
   end
 end
@@ -68,6 +69,6 @@
 
   # modify these after the tasks are tested
-  periods      -poll 60
-  periods      -exec 300
+  periods      -poll 5
+  periods      -exec 120
   periods      -timeout 60
   npending     1
@@ -78,10 +79,11 @@
 
   # command does not need to be dynamic
-  command neb-admin --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 100
+  command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 100
 
   # success
   task.exit $EXIT_SUCCESS
     # convert 'stdout' to book format
-    ipptool2book stdout replicatePending -key neb_id -uniq -setword pantaskState INIT
+    ipptool2book stdout replicatePending -key key -uniq -setword pantaskState INIT
+
     if ($VERBOSE > 2)
       book listbook replicatePending
@@ -111,6 +113,10 @@
   task.exec
     book npages replicatePending -var N
-    if ($N == 0) break
     if ($NETWORK == 0) break
+    if ($N == 0)
+        periods -exec 30
+        break
+    end
+    periods -exec 0.1
     
     # look for new objects in replicatePending
