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