Run External Program When Chat User Connects

Run External Program When Chat User Connects

Chat can now run an external program when a chat user connects.

Add EnableEvents=1 to bpq32.cfg to enable.

BPQ will try to run program ChatNewUser.exe (Windows) or ChatNewUser (Linux – note the case). This should be in the same directory as BPQChat.exe or linbpq. The program is called with the connecting user’s callsign as a parameter.  An example with a bash script for testing is shown below, but other languages should work just as well.

echo “Hello $1”

If you find the articles, or content in general posted here useful, enjoyable or maybe even something else, please consider making a small contribution towards my hosting fund so that I may continue to provide my services for free to as many people as possible.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s