LinBPQ Applications Interface.

LinBPQ has a facility to make a tcp connection from the node to an application running on the same machine. This was originally intended to connect to a shell to enable basic configuration editing, but has been generalised to allow connects to other tcp ports, thus allowing you to write your own applications to be used with LinBPQ.

Ok, that sounds nice. Let give it a try.

Fist setup Linbpq, add de “cmdport” to the telnet port section.

I have add “CMDPORT 63000” but it can by any number.
Now we have to add some stuff to /etc/services and /etc/inetd.conf

/etc/services

/etc/inetd.conf

Now restart inetd. sudo killall -1 inetd

I have found a small script on the internet and make some adjustments.
This script is using some perl modules that has to be installed.

The testapp.pl script. /usr/local/linbpq/testapp.pl

Now we can run the script from linbpq. Let give it a try.

http://www.cantab.net/users/john.wiseman/Documents/LinBPQ%20Applications%20Interface.html

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.