Runtime.getRuntime().exec("Your command.")

解决方案 »

  1.   

    这个我知道,只是...unix俺不熟悉,exec里面的参数应该怎么写呢?
    exec("compress myfileneme");??????对么??
      

  2.   

    例:)
    String command = "imp user/user@guest file="+path2+"exporacle.dmp  fromuser=system touser=system log="+path2+"imporacle.log ";
    Runtime.getRuntime().exec(command);
      

  3.   

    这问题应该到UNIX版去,问他们compress命令行怎么用。
      

  4.   

    -_-!
    这样用有错吗??
    Runtime.getRuntime().exec("compress ./mypath/myfile.txt");因为俺每天都来java版,觉得这里比较亲切,就顺手问了....而且开始的时候俺有点晕,没想清楚就冒出来了....