<br><font size=2 face="sans-serif">Hi,</font><br><br><font size=2 face="sans-serif">I want to do some application tests
on several servers. All these test should be under one column named "app".
Every test is unique for one server. So test "app" on "server1"
is different from "app" on server2. All these test run remotely
on the hobbit server, not on the destination servers.</font><br><br><font size=2 face="sans-serif">For now I wrote a test-script for every
test and define a unique testname for the bbhost file for every test-script.
In the script I reported to the "app" column. Works fine, but
I have to include every test-script in the hobbitlaunch file and so all
these tests run simultaneously, resulting in a big number of processes
on the hobbit server. </font><br><br><font size=2 face="sans-serif">So I  think of writing _one_ testscript
for the "app" test and let this script decide which subscript
should be run for each host. So all the different tests would be run under
one master test script and so I hopefully get only one process.</font><br><br><font size=2 face="sans-serif">   BBHTAG=app    
   # What we put in bb-hosts to trigger this test</font><br><font size=2 face="sans-serif">   COLUMN=app    
      # Name of the column, often same as tag in bb-hosts</font><br><br><font size=2 face="sans-serif">   TEMPFILE_OUTPUT=$BBTMP/$BBHTAG.output.tmp</font><br><font size=2 face="sans-serif">   TEMPFILE=$BBTMP/$BBHTAG.tmp</font><br><font size=2 face="sans-serif">   $BBHOME/bin/bbhostgrep
$BBHTAG | while read L</font><br><font size=2 face="sans-serif">   do</font><br><font size=2 face="sans-serif">      echo "found
hosts: $L"</font><br><font size=2 face="sans-serif">      rm $TEMPFILEOUTPUT
>/dev/null 2>&1</font><br><font size=2 face="sans-serif">      set $L    #
To get one line of output from bbhostgrep</font><br><font size=2 face="sans-serif">      HOSTIP="$1"</font><br><font size=2 face="sans-serif">      MACHINEDOTS="$2"</font><br><font size=2 face="sans-serif">      MACHINE=`echo $2
| $SED -e's/\./,/g'`</font><br><br><font size=2 face="sans-serif">      COLOR=green</font><br><font size=2 face="sans-serif">      echo "Application
test on $MACHINEDOTS" > $TEMPFILE</font><br><br><font size=2 face="sans-serif">      if "$MACHINE"
== "server1"</font><br><font size=2 face="sans-serif">         .
apptest_server1.sh</font><br><font size=2 face="sans-serif">      fi</font><br><font size=2 face="sans-serif">      if "$MACHINE"
== "server2"</font><br><font size=2 face="sans-serif">         .
apptest_server2.sh</font><br><font size=2 face="sans-serif">      fi</font><br><font size=2 face="sans-serif">      MSG=`cat $TEMPFILE_OUTPUT
| fold -s -w 100`</font><br><br><font size=2 face="sans-serif">      if [ $DEBUG = TRUE
]</font><br><font size=2 face="sans-serif">      then</font><br><font size=2 face="sans-serif">        echo "status
$MACHINE.$COLUMN $COLOR `date` $MSG"</font><br><font size=2 face="sans-serif">      else</font><br><font size=2 face="sans-serif">        $BB $BBDISP
"status $MACHINE.$COLUMN $COLOR `date` $MSG"</font><br><font size=2 face="sans-serif">      fi</font><br><font size=2 face="sans-serif">      rm $TEMPFILE_OUTPUT
>/dev/null 2>&1</font><br><font size=2 face="sans-serif">    done</font><br><br><font size=2 face="sans-serif">    exit 0</font><br><br><br><font size=2 face="sans-serif">What do you think of this method? Maybe
you have a better idea?</font><br><br><font size=2 face="sans-serif">Thank you </font><br><font size=2 face="sans-serif">Thorsten Erdmann<br></font><font face="sans-serif"><font face="sans-serif, Arial, Helvetica" size="-1" color="#808080"><br>If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
<br></br> 
                                                                          
</font></font>