Enhancement #210
closedshell support
0%
Description
it'll be great to have ability to execute shell commands via irc private messaging.
simple case (admin, one shell command, no execution timeout, blocking wait for the results) implemented, see patch attached.
Example of usage:
/bip shell uname -a
Linux rt-n16 2.6.22.19 #8 Sat Mar 19 21:53:29 YEKT 2011 mips GNU/Linux
the more better solution would be like following:
1. open one non-blocking shell pipe (or pseudo tty) per client connection with /bip shell [optional cmd]
2. poll shell output descriptor together with connection handles
3. notify client if any output is available
4. pass subsequent commands directly to the opened shell, if it's not closed yet
5. close shell pipe on timeout and/or with /bip shell exit (semantic would allow *sh exist as well and pipe will be closed)
Files