Execute shell commands by sending messages

I am not sure, if such a feature exists already (be sure, I have googled for it...).
I used to set up a private jid so that I could send SQL-commands to a database server and get responses from a server.
Is it possible to set up something like shell@localhost so that it would execute shell commands sent to it from admin@localhost, instead of using console? If not, such a feature is worth developing :)

Thanks.

In the ejabberd-contrib git

In the ejabberd-contrib git repository you can find mod_shcommands, which implements this but for the WebAdmin.

Exactly what you refer is implemented in https://www.ejabberd.im/mod_chatcommands but it is very very old, not updated, and surely doesn't work in newer ejabberd versions.

I hope it will be updated

I hope it will be updated soon ;-) I owe you a beer! :-D

I found a way round solution

I found a way round solution for my project.
In my program I am going to use shell to run erl-commands sent from jid A to jid B. It worked for me well, but the problem was to get response, that is why I was looking for subj.
All I have to do is to read shell response programmatically (I did not know it was possible) and send it back to jid A from jid B.

Thanks.

Syndicate content