[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] How to display only a section of clientlog
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] How to display only a section of clientlog
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Thu, 19 Oct 2006 16:05:48 +0200
- References: <BAY118-F14B9111FBABFF1DA1C4D389F0C0@phx.gbl>
- User-agent: Mutt/1.5.11
On Thu, Oct 19, 2006 at 07:26:40AM -0500, T.J. Yang wrote:
> as you can see the intent of showing only prtconf has failed in following
> command.
>
> bash-3.00$ bb 127.0.0.1 "clientlog test.test.com section=prtconf"
Remove the extra space before the "section=prtconf".
Or apply this patch, run "make; make install" and restart Hobbit.
Henrik
--- hobbitd/hobbitd.c 2006/10/03 10:48:27 1.254
+++ hobbitd/hobbitd.c 2006/10/19 14:03:40
@@ -3277,6 +3277,7 @@
p = msg->buf + strlen("clientlog"); p += strspn(p, "\t ");
hostname = p; p += strcspn(p, "\t "); if (*p) { *p = '\0'; p++; }
+ p += strspn(p, "\t ");
hosthandle = rbtFind(rbhosts, hostname);
if (hosthandle != rbtEnd(rbhosts)) {