bet36365.net

当前位置:主页 > bet36365.net >

如何使用Java在Linux中调用sh文件

来源:365bet体育在线导航 作者:365bet手机官网网址 时间:2019-10-27 09:15

/由***进程指定的命令链进程是单独执行的。
** p这是一种方便的方法。
* ttexec(command)/ tt形式的调用*行为与调用完全相同* tt{@ link#exec(String,String[],File)exec}(command,null,null)/ tt。
** @paramcommanda指定的系统命令。
** @ returnAnew{@linkProcess objectformanagingthesubprocess}* ** @ throwsSecurityException Ifasecuritymanagerexistsandits *{@ linkSecurityManager#checkExeccheckExec methoddoesntallowcreationofthesubprocess}* ** * @ throwsIOException IfanI / OerroroccursImpreso #Imsoso #Imsoso #Imsoso #Imso#打印屏幕代码** @参见#exec(字符串[],字符串[],文件)* @ seeProcessBuilder * / java。

运行时#exec(Stringcommand,String[]envp);