cleaner hobbit-confreport.sh output
smith.js.8 at pg.com
smith.js.8 at pg.com
Wed Nov 23 19:24:03 CET 2005
Henrik,
I was looking at the configuration report, thinking that the output of the
process listing could be much cleaner. Being a shell guy and not a C guy, here's
a modified command line that will clean up the process output. Of course, an
even better solution would be to enclose the process listing in <pre>...</pre>
tags in the output from the hobbit-confreport.cgi program. But, this works.
exec /home/hobbit/server/bin/hobbit-confreport.cgi $CGI_HOBBITCONFREPORT_OPTS \
| /bin/sed 's#\(>procs<.*=top>\)\(.*\)\(<br>\)$#\1^M<hobbit>\2</hobbit>^M\3# ;
s#\\\\#~~#g ; s#\\n#<br>#g ; s#~~#\\\\#g' \
| /usr/bin/tr "^M" "\n" \
| /bin/sed 's#hobbit>#pre>#g'
--Scott
More information about the Xymon
mailing list