On Wednesday 07 February 2007 12:50, Henrik Stoerner wrote:
The attached patch should do it. It creates a "user" channel that is fed
the messages you send with
$BB $BBDISP "usermsg HOSTNAME ... your custom message here ..."
On the server side, run
hobbitd_channel --channel=user YOURCUSTOMCOMMAND
to pick up the messages.
I've set the max size of such messages at 128 KB (random number), but
you can tune it by setting MAXMSG_USER to something else and restarting
Hobbit. Note that as always, OS limits may need to be tweaked since this
adds an extra shared memory segment and a couple of semaphore items. If
you suddenly cannot start Hobbit and it complains about "cannot setup
user channel", then that's your problem.
Henrik
Henrik, if you are ever in Belgium of the Netherlands, let me know, and I will
be you a drink.
Nice job.
Stef