Project

General

Profile

Actions

Enhancement #210

closed

shell support

Added by Vladislav Grishenko over 13 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2011-03-20
Due date:
% Done:

0%

Estimated time:
Patch Available:
Yes
Found in Versions:
0.8.7
Confirmed:
No
Branch:
Security:
No
Help Needed:

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

0101-shell.patch (1.92 KB) 0101-shell.patch Vladislav Grishenko, 2011-03-20 21:55
Actions

Also available in: Atom PDF