[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Antwort: Re: [hobbit] Wish for next Hobbit Version
- To: hobbit (at) hswn.dk
- Subject: Antwort: Re: [hobbit] Wish for next Hobbit Version
- From: stefan.freisler (at) aspect-online.de
- Date: Thu, 4 Jan 2007 15:31:40 +0100
yes of cause but when you only use grep hobbitdboard is better i think. In
my scripts i parse the XML file with some commands
e.g.
HOSTS=`$BBHOME/bin/bb 127.0.0.1 "hobbitdxboard"| $TR -d '\n'| sed
's#\(.*\)<StatusBoard>\(.*\)</StatusBoard>\(.*\)#\2#'|$SED
's#</ServerStatus>#\x0A#g'|$SED
's#\(.*\)<ServerName>\(.*\)</ServerName>\(.*\)#\2#'|$SORT -u`
with this you get all hostnames only once and sorted.
If you use it on console you must change the $SED etc to sed or something
else.
by
Stefan