//command就是你在linux上执行脚本的字符串命令
StringBuffer command = new StringBuffer();
commandappend(SHELL)append(BLANK);
commandappend(CREATEUSER_SH)append(BLANK);
commandappend(fsigetFtpIp())append(BLANK);
commandappend(fsigetRootPasswd())append(BLANK);
commandappend(fsigetFixHomePath() + ftpInfogetHomePath())append(BLANK);
commandappend(ftpInfogetFtpUser())append(BLANK);
commandappend(ftpInfogetFtpPasswd())append(BLANK);
commandappend(ftpInfogetFlag());
// 进程p执行脚本
p = RuntimegetRuntime()exec(commandtoString());
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)