4 Jan
2007
4 Jan
'07
2:31 p.m.
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