Index: /trunk/ippTasks/pantasks.pro
===================================================================
--- /trunk/ippTasks/pantasks.pro	(revision 11484)
+++ /trunk/ippTasks/pantasks.pro	(revision 11485)
@@ -49,4 +49,11 @@
 end
 
+macro init.simtest.local
+  $LOGDIR = `ipp_datapath.pl path://SIMTEST`
+  $LOGDIR = $LOGDIR/logs
+  exec mkdir -p $LOGDIR
+  $parallel = 0
+end
+
 macro init.simtest.defDB
   $LOGDIR = `ipp_datapath.pl path://SIMTEST`
@@ -69,5 +76,6 @@
   if ($parallel) 
     controller exit true
-    controller host add mithrandir
+    echo "add your local host with"
+    echo "controller host add (localhost)"
   end
 end
@@ -171,12 +179,19 @@
 
 macro set_standard_args
-  $ARGS = ""
+  # XXX be careful: $ARGS cannot be resolved as ""
+  # XXX currently, sprintf is the only good way of creating 
+  # an empty variable
+  if ($?WORKDIR == 0) 
+    echo error in pantasks: WORKDIR not set
+    stop
+  end
+  if ($?DBNAME == 0) 
+    echo error in pantasks: DBNAME not set
+    stop
+  end
   if ("$DBNAME" != "DEFAULT")
-    $ARGS = $ARGS --dbname $DBNAME
-  end
-  if ("$WORKDIR" != "")
-    $ARGS = $ARGS --workdir $WORKDIR
+    $ARGS = --workdir $WORKDIR --dbname $DBNAME
   else
-    echo WORKDIR not set
+    $ARGS = --workdir $WORKDIR
   end
 end
@@ -192,4 +207,12 @@
   $exitCode = $3
 
+  if ($VERBOSE > 4)
+    echo "*** stdout ***"
+    queueprint stdout
+    echo "*** stderr ***"
+    queueprint stderr
+    echo "JOB_STATUS: $JOB_STATUS"
+  end
+
   # success
   if ($exitCode == $EXIT_SUCCESS) 
