Skip to content
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

Open
dschuermann opened this issue Aug 21, 2012 · 5 comments
Open

Method ideas #7

dschuermann opened this issue Aug 21, 2012 · 5 comments

Comments

@dschuermann
Copy link
Member

changeHostname
changeDnsServer
changeAndroidID
setSystemClock()

@Alexander--
Copy link

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.

@aschot-myan
Copy link

SimpleCommand.getErrorOutput()

returns only the error output of executed commands so you can check if something went wrong

@dschuermann
Copy link
Member Author

@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

@Alexander--
Copy link

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.

@dschuermann
Copy link
Member Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants