Вопрос

I write xmpp bot in linux that invoke remote shell for me. Any one could intoduce my which technologies should I know about them, to write this program?

Это было полезно?

Решение

In order to write a xmpp bot in linux, you need to use an XMPP library like libstrophe (http://strophe.im/libstrophe) for C language or any other language see XMPP clients in xmpp.org. As far as remote shell is concerned you can use forkpty system call to start a shell and communicate with it using its standard input and output file descriptors. A more symplistic approache could be to use the exec family of functions.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top