Код: Выделить всё
mycommand &> mycommand.log
Код: Выделить всё
String command = "mycommand &> mycommand.log";
Process.getRuntime().exec(command);
Подробнее здесь: https://stackoverflow.com/questions/787 ... edirection
Код: Выделить всё
mycommand &> mycommand.log
Код: Выделить всё
String command = "mycommand &> mycommand.log";
Process.getRuntime().exec(command);