|
|
@ -10,7 +10,7 @@ import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* 上传文件
|
|
|
|
* 执行指令
|
|
|
|
* @author cy
|
|
|
|
* @author cy
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
@ -18,7 +18,7 @@ public class ProcessExecUtils
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 上传文件
|
|
|
|
* 执行指令
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static Integer exec(String cmd) {
|
|
|
|
public static Integer exec(String cmd) {
|
|
|
@ -38,7 +38,6 @@ public class ProcessExecUtils
|
|
|
|
if(StringUtils.isNotBlank(result)){
|
|
|
|
if(StringUtils.isNotBlank(result)){
|
|
|
|
log.info("查询最新结果:{}",result);
|
|
|
|
log.info("查询最新结果:{}",result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result = sb.toString();
|
|
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
log.error("IOException",e);
|
|
|
|
log.error("IOException",e);
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|