2 Jul
2008
2 Jul
'08
8:47 p.m.
here is another one I need to use frequently as a hb admin.
bash-3.00$ cat remove-all-purple.ksh
!/usr/bin/ksh
HBBB="/opt/hobbitserver42/bin/bb --debug"
${HBBB} 127.0.0.1 "hobbitdboard color=purple fields=hostname,testname" |
while read L; do
HOST=echo $L | cut -d'|' -f1
TEST=echo $L | cut -d'|' -f2
${HBBB} 127.0.0.1 "drop $HOST $TEST"
done
bash-3.00$
T.J. Yang
Watch “Cause Effect,” a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause