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

Option to use for standard commands as well #3

Closed
GoogleCodeExporter opened this issue Mar 2, 2016 · 2 comments
Closed

Option to use for standard commands as well #3

GoogleCodeExporter opened this issue Mar 2, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I would first off like to thank you for making this library, I had been 
searching for something like this for quite some time.

I do have a suggestion though...

It would be nice to be able to run standard commands through this framework as 
well. 

I changed the source around so the Executer.sendShell function asks for a 
"useRoot" boolean parameter.

Then inside it where it declares the process, I put this:
process = Runtime.getRuntime().exec(useRoot ? "su" : "sh");

Cheers,
Corey

Original issue reported on code.google.com by CZua...@gmail.com on 27 Jun 2011 at 1:53

@GoogleCodeExporter
Copy link
Author

Upload your amended code, or extra methods and I will be glad to add them in :)

I can easily add an overloaded method to accomplish what you would like to see.

Original comment by Stericso...@gmail.com on 28 Jul 2011 at 4:24

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Done

Original comment by Stericso...@gmail.com on 14 Nov 2011 at 7:45

  • Changed state: Fixed

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

No branches or pull requests

1 participant