Gildas,<br>Maybe it has something to do with buffering. Did you unbuffer the stdin/out in your perl script? You can do it by select or using sysread/syswrite system calls. <br>-werner<br><br><div><span class="gmail_quote">
On 3/6/07, <b class="gmail_sendername">Gildas Le Nadan</b> <<a href="mailto:gn1@sanger.ac.uk">gn1@sanger.ac.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Henrik Stoerner wrote:<br>> On Tue, Mar 06, 2007 at 11:19:21AM +0000, Gildas Le Nadan wrote:<br>><br>>>I've written a custom perl listener for the client channel.<br>>><br>>>It seems to work quite fine when it starts properly, but most of the
<br>>>time it just sits there receiving no data and there's the message "Tried<br>>>to down BOARDBUSY" in the listener logs.<br>>><br>>>I suspect this is related to the channel registration :)
<br>><br>> How are you running your perl program ?<br>><br>> You must run it from hobbitlaunch.cfg through a new section like<br>><br>> [myclienttool]<br>>       ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
<br>>       CMD hobbitd_channel --channel=client /usr/local/bin/myclient.pl<br>>       LOGFILE $BBSERVERLOGS/myclient.log<br>><br>> myclient.pl then receives the client data on <STDIN><br>><br>> For debugging you can run it by hand. You MUST be logged in as the
<br>> hobbit user, then run<br>>     bbcmd hobbitd_channel --channel=client /usr/local/bin/myclient.pl<br>><br>><br>> Henrik<br><br><br>Ok, my mistake. The message is sent when hobbit is stopped, not started,
<br>so it is a known issue.<br><br>I guess I was just too impatient, as I receive messages after a while.<br><br>It seems that there is some kind of buffering on the logs produced by<br>the listener when launched through 
hobbitlaunch.cfg so it delayed the<br>messages even more.<br><br>Thanks for your help,<br>Gildas<br><br></blockquote></div><br>