Closed GoogleCodeExporter closed 8 years ago
Once the 'chat room' feature lands, it might make sense to leverage that for
this - something like:
* Each new cmd request executes in its own thread.
* A new chat room is opened for the command.
* Things sent to this chatroom by the user are send to stdin on the process.
* Things send to stdout get sent to this room by the app.
Probably also need some way of killing the process - so we probably want to
assign a 'unique id' to each cmd started (possibly just the PID, although that
isn't very friendly), and have a global command with the format 'kill:some_id'
to kill it.
Original comment by skippy.hammond@gmail.com
on 6 Jan 2011 at 11:47
I noticed the same bug on "cmd:top".
I also noticed it doesnt work very well with huge results, try a "cmd:ps" for
example and you won't get everything usually answered by the terminal.
Furthermore, be aware that "kill:some_id" is likely to fail on 2.2+ terminal
because of the way froyo limits this kind of actions ...
Original comment by yoanjacq...@gmail.com
on 10 Jan 2011 at 9:38
I've made a first fix to manage infinite commands.
I've some issue to kill the thread (ie the command) because thread.stop is not
precated and throw an exception.
Then if you send command like "top" don't forget to send another command like
"killall top"
Original comment by Florent....@gmail.com
on 26 Jan 2011 at 12:11
Original comment by Florent....@gmail.com
on 29 Jan 2011 at 7:03
Fixed in v1.8
Original comment by Florent....@gmail.com
on 29 Jan 2011 at 10:57
Original comment by fschm...@gmail.com
on 25 Aug 2011 at 7:51
Original issue reported on code.google.com by
skippy.hammond@gmail.com
on 6 Jan 2011 at 12:13