On Thu, 2005-12-08 at 03:01, John Foley wrote:
Philip -
thanks for the reply - your points on the changes and
documentation are well taken; I understand what you're
saying. I will try the BBPAGE modification tomorrow and
see what happens. I thought I had tried something
similar earlier today, but I'll check this again
tomorrow.
It's trickier than I initially assumed. If you don't define
any colours to page on, BB uses defaults. If you don't
define a BBPAGER host BB will assume that the BBDISPLAY
is also a BBPAGER. BB really, really wants to send out
alerts :)
The BBPAGE tweak should work, but it's a bit of a kludge and
might not continue to work on future versions.
I'd still like to know (for my understanding) *where*
the actual page message is created - I haven't been
able to find it anywhere on the client.
It's in the bbnotify function at the top of bb.c.
My notification requirements are somewhat unique, so I'm
going to "roll my own" notification script, and I
want to make sure that there's no interference from the
"standard" notification system - to insure this, I want
to try to eliminate all the page messages. Interestingly
enough, the windows client has a simple switch on the
config app to turn off all page messages, but the unix
does not appear to be so straightfoward.
That may be saying more about the number of alerts that a
flaky Windows box can generate :)
Another approach, which may give you what you want, is to
think up a fake status name for testing purposes, i.e.
"ptst". You can then exclude that name from your standard
paging rules and send them to your script instead, inside
your bbwarnrules.cfg file, like so:
*;;*;ptst;*;*;me@mydomain.com
*;;ptst;;*;*;ext-mypscript-noone@nowhere.com
Then you can test "mypscript" by doing something like:
export BBHOME=/usr/local/bb/bbc1.9h-btf
. etc/bbdef.sh
bin/bb $BBDISP "page aclient,mydomain,com.ptst red Test message."
from one of your clients.
Jim -
I've always used the same machine for the DISPLAY and
PAGER too, but the system allows them to be on separate
machines if required (as a matter of fact, you don't
even need a DISPLAY node if all you want is "paging").
John
Cheers, Phil