Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7645)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7646)
@@ -18,4 +18,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2006/04/21 Daniel Hoehne
+
+   * datacenter/scripts/doqualityplots.C, dowebplots.C:
+     - fixed bug in usage of pstoimg
+
+
 
  2006/04/13 Thomas Bretz
Index: /trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots	(revision 7645)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots	(revision 7646)
@@ -73,7 +73,13 @@
 mv -v $name.{root,ps} $webpath  >> $scriptlog 2>&1
 
+echo "creating temporary dir for pstoimg..." >> $scriptlog 2>&1
+tempwebplotspath=$webpath/tempqualityplots
+makedir $tempwebplotspath >> $scriptlog 2>&1
+
 echo "producing png files: " >> $scriptlog 2>&1
-pstoimg -antialias -flip r270 -density 100 -type png -multipage $psfile >> $scriptlog 2>&1
+pstoimg -antialias -flip r270 -density 100 -tmp $tempwebplotspath -type png -multipage $psfile >> $scriptlog 2>&1
 
+echo "removing temporary dir..." >> $scriptlog 2>&1
+rmdir -v $tempwebplotspath >> $scriptlog 2>&1
 
 # second part
Index: /trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7645)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7646)
@@ -126,6 +126,14 @@
    ./showplot -b --save-as-ps=$psfile $rootfile >> $scriptlog 2>&1
 
+   echo "creating temporary dir for pstoimg..." >> $scriptlog 2>&1
+   temppath=`dirname $rootfile`
+   tempwebplotspath=$temppath/tempwebplots
+   makedir $tempwebplotspath >> $scriptlog 2>&1
+
    echo "converting plots to png..." >> $scriptlog 2>&1
-   pstoimg -antialias -flip r270 -density 100 -type png -multipage -out=$tabfile $psfile >> $scriptlog 2>&1
+   pstoimg -antialias -flip r270 -density 100 -tmp $tempwebplotspath -type png -multipage -out=$tabfile $psfile >> $scriptlog 2>&1
+   
+   echo "removing temporary dir..." >> $scriptlog 2>&1
+   rmdir -v $tempwebplotspath >> $scriptlog 2>&1
 done
 
