[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] variable for test script in bb-hosts?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] variable for test script in bb-hosts?
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Wed, 31 May 2006 10:45:34 +0200
- References: <Pine.LNX.4.64.0605310002300.16715@firda.kolla.no>
- User-agent: Mutt/1.5.9i
On Wed, May 31, 2006 at 12:15:52AM +0200, Kolbjørn Barmen wrote:
>
> I picture something like mytest;key=val and then being able to pick up
> ${key} with value "val" from the test script.
Since your test script is a custom script, there is no problem in doing
that. Use something like this in your script:
#!/bin/sh
$BBHOME/bin/bbhostgrep --no-extras "mytest*" | \
while read L
do
set $L
IP=$1; shift
MACHINE=$1; shift
shift
TESTSPEC=$1
OPTVAL=`echo "$TESTSPEC" | cut -d';' -f2`
echo "Testing machine $MACHINE with option $OPTVAL"
done
Regards,
Henrik