Index: trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots	(revision 7501)
+++ 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
