Executing shell commands from Java: detecting and printing errors?

前端 未结 0 479
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 10:40
try {
        proc = Runtime.getRuntime().exec("/bin/bash");
    }
    catch (IOException e) {
        e.printStackTrace();
    }
    if (proc != null) {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题