Index: /trunk/ippTasks/summit.copy.pro
===================================================================
--- /trunk/ippTasks/summit.copy.pro	(revision 15169)
+++ /trunk/ippTasks/summit.copy.pro	(revision 15170)
@@ -6,8 +6,6 @@
 #$telescope  = zl
 #$workdir    = /data/ipp004.0/allskycam
-$uri        = http://conductor/ds/gpc1/index.txt
-$camera     = gpc1
-$telescope  = ps1
-$workdir    = /data/ipp006.0/gpc1
+#$workdir    = /data/ipp006.0/gpc1
+$workdir    = /export/ipp010.0/
 
 $VERBOSE = 1
@@ -26,12 +24,76 @@
 
 # run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
-task pzgetexp
-  command      pzgetexp -uri $uri -inst $camera -telescope $telescope
-  host         local
-
+task pzgetexp.gpc1
   # timeout shorter than exec so jobs do not build up
   periods      -exec     15
   periods      -poll     1
   periods      -timeout  15
+  host         local
+
+  task.exec
+      $uri        = http://conductor/ds/gpc1/index.txt
+      $camera     = gpc1
+      $telescope  = ps1
+
+        $run = pzgetexp -uri $uri -inst $camera -telescope $telescope
+#        echo command $run
+        command $run
+  end
+
+  task.exit     0
+  end
+
+  task.exit     default
+    showcommand failure
+  end
+  task.exit     timeout
+    showcommand timeout
+  end
+end
+
+task pzgetexp.allskycam
+  # timeout shorter than exec so jobs do not build up
+  periods      -exec     15
+  periods      -poll     1
+  periods      -timeout  15
+  host         local
+
+  task.exec
+      $uri        = http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt
+      $camera     = allskycam
+      $telescope  = ps1
+        $run = pzgetexp -uri $uri -inst $camera -telescope $telescope
+#        echo command $run
+        command $run
+  end
+
+
+  task.exit     0
+  end
+
+  task.exit     default
+    showcommand failure
+  end
+  task.exit     timeout
+    showcommand timeout
+  end
+end
+
+task pzgetexp.isp
+  # timeout shorter than exec so jobs do not build up
+  periods      -exec     15
+  periods      -poll     1
+  periods      -timeout  15
+  host         local
+
+  task.exec
+      $uri        = http://otis1.ifa.hawaii.edu/ds/skyprobe/index.txt
+      $camera     = isp
+      $telescope  = ps1
+        $run = pzgetexp -uri $uri -inst $camera -telescope $telescope
+#        echo command $run
+        command $run
+  end
+
 
   task.exit     0
@@ -82,5 +144,5 @@
     periods      -timeout  15
     host 	local
-    npending 	5
+    npending 	3
 
     task.exec
@@ -142,5 +204,5 @@
 # build a book of imfiles/files that need to be downloaded
 task pztool.pendingimfile
-    command      pztool -pendingimfile -limit 25
+    command      pztool -pendingimfile -limit 120
     host         local
 
@@ -207,9 +269,15 @@
         book getword pzPendingImfile $pageName md5sum -var MD5SUM
         book getword pzPendingImfile $pageName dateobs -var DATEOBS
+        book getword pzPendingImfile $pageName camera -var $CAMERA
+
+        # 2007-08-30T05:09:59Z
+        substr $DATEOBS 0 4 YEAR
+        substr $DATEOBS 5 2 MONTH
+        substr $DATEOBS 8 2 DAY
 
         # figure out filename
-        $FILENAME = $workdir/$EXP_NAME.$CLASS_ID.fits
-
-        book setword pzPendingImfile $pageName filename FILENAME
+        $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
+
+        book setword pzPendingImfile $pageName filename $FILENAME
 
         # store the pageName with this job
