Redian新闻
>
How to use "p = r.exec("simon parameters
avatar
How to use "p = r.exec("simon parameters# Java - 爪哇娇娃
w*l
1
I want to use "exec()" to execute a command "simon
parameters.wradmon.13.10.dat > result.dat". The command "simon
parameters.wradmon.13.10.dat > result.dat" can be executed under command line
of unix, and I can get a file named " result.dat". However, when I use a line
in my program, I can't get the "result.dat". Moreover, when I just use "p =
r.exec("simon parameters.wradmon.13.10.dat ");", I also can not see the result
displaying on the screen. I used the "ps -u huwang" to monitor the subproce
avatar
s*e
2
Check the API of java.lang.Process, it will give you the output. Then you can
do whatever you want.

line
line
result
subprocess

【在 w*l 的大作中提到】
: I want to use "exec()" to execute a command "simon
: parameters.wradmon.13.10.dat > result.dat". The command "simon
: parameters.wradmon.13.10.dat > result.dat" can be executed under command line
: of unix, and I can get a file named " result.dat". However, when I use a line
: in my program, I can't get the "result.dat". Moreover, when I just use "p =
: r.exec("simon parameters.wradmon.13.10.dat ");", I also can not see the result
: displaying on the screen. I used the "ps -u huwang" to monitor the subproce

avatar
w*l
3
Can you give me an example or explanation in detail?
Thanks.

can
=
a

【在 s*****e 的大作中提到】
: Check the API of java.lang.Process, it will give you the output. Then you can
: do whatever you want.
:
: line
: line
: result
: subprocess

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。