`

JAVA调用Shell脚本2

    博客分类:
  • Java
 
阅读更多
String[] shell = new String[] { "/bin/sh", "-c", "cd /root/gbase;./dispserver -p 6667 &" };
Process ps = Runtime.getRuntime().exec(shell);
ps.waitFor();  

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics