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" == "") 
