This work for me: First you have to enter the command without turning on handler
(with false):
Command command = new Command(0, false, "cat")
Then do the following:
RootTools.getShell(true).add(command);
while (!command.isFinished())
{
try
{
Thread.sleep(50);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
source
share