Index: trunk/ippTasks/survey.pro
===================================================================
--- trunk/ippTasks/survey.pro	(revision 23907)
+++ trunk/ippTasks/survey.pro	(revision 23907)
@@ -0,0 +1,40 @@
+## survey.pro : tasks related to automation of the PS1 survey : -*- sh -*-
+
+# test for required global variables
+check.globals
+
+task diff.check
+  host local
+ 
+  periods      -poll 10
+  periods      -exec 60
+  periods      -timeout 60
+  npending     1
+
+  stdout $LOGDIR/diffcheck.log
+  stderr $LOGDIR/diffcheck.log
+
+  task.exec
+    $run = difftool -dbname gpc1 -definewarpwarp -distance 0.1 -input_label $LABEL -template_label $LABEL -label $LABEL -workdir neb://@HOST@.0/gpc1/$LABEL -good_frac 0.1 -simple
+    command $run
+  end
+
+  # success
+  task.exit    0
+    echo "checked for new diff runs"
+  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
