Index: trunk/ippTasks/camera.pro
===================================================================
--- trunk/ippTasks/camera.pro	(revision 14681)
+++ trunk/ippTasks/camera.pro	(revision 14693)
@@ -140,6 +140,6 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$EXP_TAG
-    $outroot = $outpath/$EXP_TAG.cm.$CAM_ID
+    sprintf outpath "%s/%s" $outpath $EXP_TAG
+    sprintf outroot "%s/%s.cm.%s" $outpath $EXP_TAG $CAM_ID
     $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
     if ("$logfile" == "") 
Index: trunk/ippTasks/chip.pro
===================================================================
--- trunk/ippTasks/chip.pro	(revision 14681)
+++ trunk/ippTasks/chip.pro	(revision 14693)
@@ -141,9 +141,9 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$EXP_TAG
-    $outroot = $outpath/$EXP_TAG.ch.$CHIP_ID
+    sprintf outpath "%s/%s" $outpath $EXP_TAG
+    sprintf outroot "%s/%s.ch.%s" $outpath $EXP_TAG $CHIP_ID
     $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     if ("$logfile" == "") 
-      $logfile = $outroot.$CLASS_ID.log
+      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
     end
 
Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 14681)
+++ trunk/ippTasks/detrend.process.pro	(revision 14693)
@@ -160,9 +160,9 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
-    $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
+    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
+    sprintf outroot "%s/%s.detproc.%s" $outpath $EXP_TAG $DET_ID
     $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     if ("$logfile" == "") 
-      $logfile = $outroot.$CLASS_ID.log
+      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
     end
 
@@ -289,6 +289,6 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
-    $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
+    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
+    sprintf outroot "%s/%s.detproc.%s" $outpath $EXP_TAG $DET_ID
     $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
     if ("$logfile" == "") 
Index: trunk/ippTasks/detrend.reject.pro
===================================================================
--- trunk/ippTasks/detrend.reject.pro	(revision 14681)
+++ trunk/ippTasks/detrend.reject.pro	(revision 14693)
@@ -137,6 +137,6 @@
       $outroot = `ipp_datapath.pl $WORKDIR`
     end
-    $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
-    $logfile = $outroot/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.detreject.log
+    sprintf outroot "%s/%s.%s.%s" $outroot $CAMERA $DET_TYPE $DET_ID
+    sprintf logfile "%s/%s.%s.%s.%s.detreject.log" $outroot $CAMERA $DET_TYPE $DET_ID $ITERATION
     stdout $logfile
     stderr $logfile
Index: trunk/ippTasks/detrend.resid.pro
===================================================================
--- trunk/ippTasks/detrend.resid.pro	(revision 14681)
+++ trunk/ippTasks/detrend.resid.pro	(revision 14693)
@@ -160,9 +160,9 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
-    $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION
+    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
+    sprintf outroot "%s/%s.detresid.%s.%s" $outpath $EXP_TAG $DET_ID $ITERATION
     $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     if ("$logfile" == "") 
-      $logfile = $outroot.$CLASS_ID.log
+      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
     end
 
@@ -292,6 +292,6 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
-    $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION
+    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
+    sprintf outroot "%s/%s.detresid.%s.%s" $outpath $EXP_TAG $DET_ID $ITERATION
     $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id NONE --basename $outroot`
 
Index: trunk/ippTasks/detrend.stack.pro
===================================================================
--- trunk/ippTasks/detrend.stack.pro	(revision 14681)
+++ trunk/ippTasks/detrend.stack.pro	(revision 14693)
@@ -139,9 +139,9 @@
       $outpath = `ipp_datapath.pl $WORKDIR`
     end
-    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
-    $outroot = $outpath/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION
+    sprintf outpath "%s/%s.%s.%s" $outpath $CAMERA $DET_TYPE $DET_ID
+    sprintf outroot "%s/%s.%s.%s.%s" $outpath $CAMERA $DET_TYPE $DET_ID $ITERATION
     $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     if ("$logfile" == "") 
-      $logfile = $outroot.$CLASS_ID.log
+      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
     end
 
Index: trunk/ippTasks/diff.pro
===================================================================
--- trunk/ippTasks/diff.pro	(revision 14681)
+++ trunk/ippTasks/diff.pro	(revision 14693)
@@ -145,6 +145,6 @@
       $outroot = `ipp_datapath.pl $WORKDIR`
     end
-    $outroot = $outroot/diff$DIFF_ID
-    $logfile = $outroot/skycell.log
+    sprintf outroot "%s/diff.%s" $outroot $DIFF_ID
+    sprintf logfile "%s/skycell.log" $outroot
     stdout $logfile
     stderr $logfile
Index: trunk/ippTasks/register.pro
===================================================================
--- trunk/ippTasks/register.pro	(revision 14681)
+++ trunk/ippTasks/register.pro	(revision 14693)
@@ -145,5 +145,5 @@
 
     # EXP_TAG is used to generate the unique, but human-readable, filenames
-    $EXP_TAG = $TMP_EXP_NAME.$EXP_ID
+    sprintf EXP_TAG "%s.%s" $TMP_EXP_NAME $EXP_ID
 
     # specify choice of remote host
@@ -156,6 +156,6 @@
     ## generate output log based on filerule XXX put this in a function?
     $outroot = `ipp_datapath.pl $WORKDIR`
-    $outroot = $outroot/$EXP_TAG
-    $logfile = $outroot/reg.$TMP_CLASS_ID.log
+    sprintf outroot "%s/%s" $outroot $EXP_TAG
+    sprintf logfile "%s/reg.%s.log" $outroot $TMP_CLASS_ID
     stdout $logfile
     stderr $logfile
@@ -256,5 +256,5 @@
 
     # EXP_TAG is used to generate the unique, but human-readable, filenames
-    $EXP_TAG = $TMP_EXP_NAME.$EXP_ID
+    sprintf EXP_TAG "%s.%s" $TMP_EXP_NAME $EXP_ID
 
     # specify choice of remote host:(need to choose based on chips)
@@ -267,6 +267,6 @@
     ## generate output log based on filerule
     $outroot = `ipp_datapath.pl $WORKDIR`
-    $outroot = $outroot/$EXP_TAG
-    $logfile = $outroot/$EXP_TAG.reg.log
+    sprintf outroot "%s/%s" $outroot $EXP_TAG
+    sprintf logfile "%s/%s.reg.log" $outroot $EXP_TAG
     stdout $logfile
     stderr $logfile
Index: trunk/ippTasks/stack.pro
===================================================================
--- trunk/ippTasks/stack.pro	(revision 14681)
+++ trunk/ippTasks/stack.pro	(revision 14693)
@@ -145,6 +145,6 @@
       $outroot = `ipp_datapath.pl $WORKDIR`
     end
-    $outroot = $outroot/stack$STACK_ID
-    $logfile = $outroot/skycell.log
+    sprintf outroot "%s/stack.%s" $outroot $STACK_ID
+    sprintf logfile "%s/skycell.log" $outroot
     stdout $logfile
     stderr $logfile
Index: trunk/ippTasks/warp.pro
===================================================================
--- trunk/ippTasks/warp.pro	(revision 14681)
+++ trunk/ippTasks/warp.pro	(revision 14693)
@@ -162,6 +162,6 @@
       $outroot = `ipp_datapath.pl $WORKDIR`
     end
-    $outroot = $outroot/warp$WARP_ID
-    $logfile = $outroot/overlap.log
+    sprintf outroot "%s/warp.%s" $outroot $WARP_ID
+    sprintf logfile "%s/overlap.log" $outroot
     stdout $logfile
     stderr $logfile
@@ -284,6 +284,6 @@
       $outroot = `ipp_datapath.pl $WORKDIR`
     end
-    $outroot = $outroot/warp$WARP_ID
-    $logfile = $outroot/skycell.log
+    sprintf outroot "%s/warp.%s" $outroot $WARP_ID
+    sprintf logfile "%s/skycell.log" $outroot
     stdout $logfile
     stderr $logfile
