在Eclipse中传递系统命令以及命令行参数 [英] Passing system commands along with command line arguments in Eclipse

查看:49
本文介绍了在Eclipse中传递系统命令以及命令行参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中是否可以通过某种方式将系统命令与命令行参数一起传递?
例如,将 out.txt> passout.txt 传递到命令行arg会导致代码处理 out.txt 文件并休息> passout.txt 传递给终端进行创建.

Is there some way to pass system commands along with command line arguments in Eclipse?
E.g passing out.txt > passout.txt to the command line arg result in the code to process the out.txt file and rest > passout.txt passed to the terminal for creation.

推荐答案

我不确定一般性答案,但是如果您要将stdout转发到某个地方,可以使用运行配置中已经存在的选项.strong>对话框:

I'm not sure about a general answer, but if you want to forward stdout somewhere you can use an option already present in Run Configuration dialog:

这篇关于在Eclipse中传递系统命令以及命令行参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆