Index: trunk/ippTasks/remote.pro
===================================================================
--- trunk/ippTasks/remote.pro	(revision 36852)
+++ trunk/ippTasks/remote.pro	(revision 36948)
@@ -10,4 +10,5 @@
 
 $remote_label_iter = 0
+$remote_label_iter2 = 0
 $remote_stage_iter = 0
 $remoteP_DB = 0
@@ -18,9 +19,64 @@
   chip
   camera
-  warp
+#  warp
   stack
 end
 
-task          remote.define.chip
+macro  remote.off
+  task  remote.define
+    active false
+  end
+  task  remote.define.warp
+    active false
+  end
+  task  remote.prep.load
+    active false
+  end
+  task  remote.prep.run
+    active false
+  end
+  task  remote.exec.load
+    active false
+  end
+  task  remote.exec.run
+    active false
+  end
+  task  remote.poll.load
+    active false
+  end
+  task  remote.poll.run
+    active false
+  end
+end
+
+macro  remote.on
+  task  remote.define
+    active true
+  end
+  task  remote.define.warp
+    active true
+  end
+  task  remote.prep.load
+    active true
+  end
+  task  remote.prep.run
+    active true
+  end
+  task  remote.exec.load
+    active true
+  end
+  task  remote.exec.run
+    active true
+  end
+  task  remote.poll.load
+    active true
+  end
+  task  remote.poll.run
+    active true
+  end
+end
+
+
+task          remote.define
   host        local
   periods     -poll $LOADPOLL
@@ -46,4 +102,13 @@
 
     $run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label
+    if ($DB:n == 0)
+      option DEFAULT
+    else
+      option $DB:$remoteP_DB
+      $run = $run -dbname $DB:$remoteP_DB
+      $remoteP_DB ++
+      if ($remoteP_DB >= $DB:n) set remoteP_DB = 0
+    end
+
     echo $run
     command $run
@@ -66,4 +131,49 @@
 end
 
+task          remote.define.warp
+  host        local
+  periods     -poll $LOADPOLL
+  periods     -exec 1800
+  periods     -timeout 30
+  npending    1
+
+  task.exec
+    stdout NULL
+    stderr $LOGDIR/remote.define.chip
+
+    $label = $LABEL:$remote_label_iter2
+
+    if ($remote_label_iter >= $LABEL:n) set remote_label_iter = 0
+    echo  $remote_label_iter $label warp
+
+    $run = remotetool -definebyquery -label $label -stage warp -path_base neb://@HOST@.0/remote/$label
+    if ($DB:n == 0)
+      option DEFAULT
+    else
+      option $DB:$remoteP_DB
+      $run = $run -dbname $DB:$remoteP_DB
+      $remoteP_DB ++
+      if ($remoteP_DB >= $DB:n) set remoteP_DB = 0
+    end
+
+    echo $run
+    command $run
+    
+  end
+    # success
+  task.exit  0
+  end
+  # locked list                                                                                                                                    
+  task.exit    default
+    showcommand failure
+  end
+  task.exit    crash
+    showcommand crash
+  end
+  #operation times out?                                                                                                                            
+  task.exit    timeout
+    showcommand timeout
+  end
+end
 
 task         remote.prep.load
