|
@@ -17,7 +17,7 @@ public class CmdCameraUtil {
|
|
|
long l = System.currentTimeMillis();
|
|
|
Process exec = null;
|
|
|
try {
|
|
|
- exec = Runtime.getRuntime().exec(new String[]{"sh", "-c", cmd});
|
|
|
+ exec = Runtime.getRuntime().exec(new String[]{cmd});
|
|
|
long l1 = System.currentTimeMillis();
|
|
|
log.info("cmd-time:{}", l1 - l);
|
|
|
} catch (IOException e) {
|
|
@@ -25,6 +25,7 @@ public class CmdCameraUtil {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
try {
|
|
|
+ log.info("info----cmd"+cmd);
|
|
|
printProcessMsg(exec);
|
|
|
} catch (IOException e) {
|
|
|
log.error(e.getMessage());
|