Skip to content

RootShell 1.3

Compare
Choose a tag to compare
@Stericson Stericson released this 12 Jan 22:02
· 35 commits to master since this release

Changes

  1. Support for commands that execute indefinitely, such as top or something else. Simply pass 0 in as the timeout. You can finish or terminate the command by calling cmd.finish() or cmd.terminate() as needed.
  2. Recompiled against JDK 1.7, should fix some issues with those not running Java 1.8 yet.

Important Note!

When implementing/overriding commandOutput you must make a call to the super method as the last statement in the method. This helps RootShell know that all output has been processed by your application and that it should mark the command as finished. RootShell will terminate the command if all output is not marked as being processed by the time that the command timeout is hit. Making the final call to the super method will help RootShell ensure that all of the output by the command you've executed is processed and will keep your application moving quickly. If you don't want RootShell waiting on you to process the output then just make the super call the first thing in the method.