Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7561)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7562)
@@ -47,4 +47,9 @@
      - fixed small bug
 
+   * datacenter/db/dowebplots: 
+     - added option -p to the script, to be able to call the script for 
+       different programs independently
+     - fixed find
+
 
 
Index: /trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7561)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7562)
@@ -54,7 +54,29 @@
 checklock  >> $scriptlog 2>&1
 
+
+while getopts p: opts
+do
+   case $opts in
+     p)  type=$OPTARG
+         echo "got programname: $type"  >> $scriptlog 2>&1
+         ;;
+     ?)  echo "usage: $(basename $0) -p programname"  >> $scriptlog 2>&1
+         ;;
+   esac
+done
+
+if [ "$type" = "" ]
+then 
+   echo "no program name given -> exit"  >> $scriptlog 2>&1
+   echo "usage: $(basename $0) -p programname"   >> $scriptlog 2>&1
+   rm -v $lockfile >> $scriptlog 2>&1
+   date  >> $scriptlog 2>&1
+   exit
+fi
+
+
 #finding all rootfiles in the webdirectory 
 #this are all statusdisplays 
-rootfiles=`find $webdir/{sinope,callisto,star,ganymed}/ -name '*.root' -maxdepth 10 | grep -v '_I_' | grep -v '_Y_' | grep -v 'subsystemdata' | grep -v 'star_lapalma'`
+rootfiles=`find $webdir/$type/ -maxdepth 10 -name '*.root' | grep -v '_I_' | grep -v '_Y_' | grep -v 'subsystemdata' | grep -v 'star_lapalma' | grep -v 'summary'`
 
 #exit if no rootfiles are found
@@ -66,4 +88,5 @@
    exit
 fi
+
 
 #produce plots for each rootfile
@@ -115,5 +138,5 @@
 
 #find all directories with plots
-dirs=`find $webdir/{star,callisto,ganymed,sinope}/* -type d | grep -v merpplogs`
+dirs=`find $webdir/$type/* -type d | grep -v merpplogs`
 
 for dir in ${dir[@]}
