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
 
