Index: trunk/ippTasks/register.pro
===================================================================
--- trunk/ippTasks/register.pro	(revision 16300)
+++ trunk/ippTasks/register.pro	(revision 17624)
@@ -140,15 +140,25 @@
     set.host.for.camera $TMP_CAMERA $TMP_CLASS_ID 
 
-    # raw workdir examples:
+    # set the WORKDIR variable
+    set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
+
+    # notes on how this works:
+    # -- raw workdir examples:
     # file://data/@HOST@.0/gpc1/20080130
     # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
-    set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
-    # out workdir examples:
+    # -- out workdir examples:
     # file://data/ipp004.0/gpc1/20080130
     # neb:///ipp004-vol0/gpc1/20080130
 
-    ## generate output logfile name and convert URI to a PATH
-    sprintf logfile "%s/%s/%s.%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG $TMP_CLASS_ID
+    ## generate outroot specific to this exposure (& chip)
+    sprintf logfile "%s/%s/%s.reg.%s.log" $WORKDIR $EXP_TAG $EXP_TAG $TMP_CLASS_ID
+
+    ## generate output log based on filerule (convert the URI to a PATH)
+    ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
     $logfile = `ipp_datapath.pl $logfile`
+    if ("$logfile" == "") 
+      echo "WARNING: logfile not defined in register.pro:160"
+      break
+    end
 
     stdout $logfile
@@ -261,9 +271,12 @@
     set.host.for.camera $TMP_CAMERA $TMP_CLASS_ID 
 
-    # raw workdir examples:
+    # set the WORKDIR variable
+    set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
+
+    # notes on how this works:
+    # -- raw workdir examples:
     # file://data/@HOST@.0/gpc1/20080130
     # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
-    set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
-    # out workdir examples:
+    # -- out workdir examples:
     # file://data/ipp004.0/gpc1/20080130
     # neb:///ipp004-vol0/gpc1/20080130
@@ -271,5 +284,12 @@
     ## generate output log based on filerule
     sprintf logfile "%s/%s/%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG
+
+    ## generate output log based on filerule (convert the URI to a PATH)
+    ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
     $logfile = `ipp_datapath.pl $logfile`
+    if ("$logfile" == "") 
+      echo "WARNING: logfile not defined in register.pro:291"
+      break
+    end
 
     stdout $logfile
