23 Nov
2005
23 Nov
'05
6:24 p.m.
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
7518
Age (days ago)
7518
Last active (days ago)
0 comments
1 participants
participants (1)
-
smith.js.8@pg.com