-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method ideas #7
Comments
shell.get{Input,Output}Stream Sometimes it is necessary to parse output of command yourself (e.g. writing frontend for command line app). These functions may return wrappers around actual streams, which order reader/writer threads in Shell class to pause processing when opened and order them to continue when closed. |
SimpleCommand.getErrorOutput() returns only the error output of executed commands so you can check if something went wrong |
@Alexander-- : Like @ashotmkrtchyan1995 said, you get the output from the command object not from the shell. This allows to open one shell and execute many commands on this one shell only, while still being able to differentiate between the outputs comming from that shell. See https://github.com/dschuermann/root-commands#simple-commands |
I don't need output, I am writing frontend for the CLI app (scanmem), which reads user commands and writes results in series of lines. It effectively acts as shell itself (e.g. it uses readline/getline), but I don't really care, because all operations are synchronous. |
@Alexander-- Should be fairly simple to get what you want. Just fork this project and implement it in your fork. I am not sure if there are more people in need of such a feature. If there are, I will pull it back into the main project. |
changeHostname
changeDnsServer
changeAndroidID
setSystemClock()
The text was updated successfully, but these errors were encountered: