Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top