Index: trunk/ippTasks/detrend.reject.pro
===================================================================
--- trunk/ippTasks/detrend.reject.pro	(revision 11336)
+++ trunk/ippTasks/detrend.reject.pro	(revision 11346)
@@ -113,6 +113,9 @@
 
     # I'd like to add CAMERA to the log file...
-    stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
-    stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
+    $outroot = `ipp_datapath.pl $WORKDIR`
+    $logfile = $outroot/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
+    stdout $logfile
+    stderr $logfile
+    exec mkdir -p $outroot
 
     # save the pageName for future reference below
