Skip to content
Discussion options

You must be logged in to vote

however, none of these seem to give me what I'd need, namely, a clean separation of what commands the user executes and whatever data that results in ...

Correct, that is inherently not possible with what OSes have with PTY and command shells these days, at least not in a reliable fashion.

What would get you close is writing your own command shell, where you control every aspect of the involved file descriptors and limit the commands down to non-interactive commands only, e.g. no interactive python call either. As soon as you allow ppl to run their own interactive programs like the python interpreter, that has its own sub commands and can spawn own DSL-based shells you lose the control …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by loveencounterflow
Comment options

You must be logged in to vote
4 replies
@jerch
Comment options

@loveencounterflow
Comment options

@davidfiala
Comment options

@jerch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants