sapperpipo21b / roottools

Automatically exported from code.google.com/p/roottools
1 stars 0 forks source link

Running multiple commands #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Wiki "Running root commands" example
2. I try to run multiple commands as
String[] commands = new String[] { command1, command2 };
List<String> otherOutput = RootTools.sendShell(commands);

What is the expected output? What do you see instead?
I'd like to see a cool root command sequence.
I don't see anything. Eclipse get pissed off and shows: The method 
sendShell(String) in the type RootTools is not applicable for the arguments 
(String[])

What version of the product are you using? On what operating system?
RootTools-0.9.1-sdk3-generic
Ubuntu
Eclipse SDK Version: 3.5.2
Android Development Toolkit Version: 10.0.1.v201103111512-110841

I used a naive workaroud:
List<String> otherOutput = RootTools.sendShell(commands, 0);

Original issue reported on code.google.com by imorgi...@gmail.com on 5 May 2011 at 8:56

GoogleCodeExporter commented 8 years ago

Original comment by Stericso...@gmail.com on 2 Jun 2011 at 3:16

GoogleCodeExporter commented 8 years ago
You need to add another parameter to your method.
The second parameter should be an int and will tell the method how long to 
pause between sending each command.

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