Index: trunk/ippTasks/camera.pro
===================================================================
--- trunk/ippTasks/camera.pro	(revision 14116)
+++ trunk/ippTasks/camera.pro	(revision 14153)
@@ -69,8 +69,10 @@
       option DEFAULT
       command camtool -pendingexp -limit 20
+      # echo command camtool -pendingexp -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$camera_DB
       command camtool -pendingexp -limit 20 -dbname $DB:$camera_DB
+      # echo command camtool -pendingexp -limit 20 -dbname $DB:$camera_DB
       $camera_DB ++
       if ($camera_DB >= $DB:n) set camera_DB = 0
@@ -81,5 +83,5 @@
   task.exit    0
     # convert 'stdout' to book format
-    ipptool2book stdout camPendingExp -key cam_id -uniq -setword dbname $options:0
+    ipptool2book stdout camPendingExp -key cam_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     if ($VERBOSE > 2)
       book listbook camPendingExp
@@ -112,6 +114,6 @@
     if ($network == 0) break
     
-    # look for new images in camPendingExp (pantaskState == NULL)
-    book getpage camPendingExp 0 -var pageName -key pantaskState NULL
+    # look for new images in camPendingExp (pantaskState == INIT)
+    book getpage camPendingExp 0 -var pageName -key pantaskState INIT
     if ($pageName == NULL) break
 
