0
我正在尝试开发一个GUI应用程序,用于创建和删除弹性Starcluster群集Amazon Elastic Compute 2。到目前为止,我已经设法从图形应用程序创建和使用这些集群,但是当我试图删除集群时,我遇到了一个问题。以下是我已经习惯了命令插入控制台的方法(从我的应用程序):Java运行时执行 - 确认问题
Runtime rt = Runtime.getRuntimne();
Process proc = rt.exec("command",null,dir);
的问题是,系统会询问我是/否确认我不能通过利用在我的应用程序中使用的方法。到目前为止,我尝试了以下方法:
Runtime rt = Runtime.getRuntimne();
Process proc = rt.exec("y",null,dir); //y for yes
但系统一直在等待答案,忽略应用程序中引入的命令。以下是请求确认的实际应用的日志:
[email protected]:~$ starcluster terminate myCluster
StarCluster - (http://star.mit.edu/cluster) (v. 0.95.5)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to [email protected]
Terminate EBS cluster myCluster(y/n)?
我很感谢您对此事的任何想法或想法。如果您认为有必要提供适当的答案,请随时索取更多信息。