boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请问java runtime exec当中如何使用通配符*?
相关主题
"Find ... -exec ..." script never ends. (转载)
python代码写成这样,什么鬼阿。
*** help needed! on MATLAB GUI ***
how to get runtime caller function?
请教一个C++有关的编译问题
error while building gcc
一个简单的问题
A C++ runtime type casting question
IDL一问
人无食不活,码无库不通
相关话题的讨论汇总
话题: rm话题: runtime话题: 通配符话题: foo话题: exec
进入Programming版参与讨论
1 (共1页)
h********g
发帖数: 116
1
rt.exec("rm foo"); 可以正确删除foo
但rt.exec("rm f*") ; 却没有作用
请问是什么原因?如何解决呢
c*****t
发帖数: 1879
2
f* is expanded by the unix shell. So you have to do something
like
rt.exec ("sh -c rm \"f*\"");

【在 h********g 的大作中提到】
: rt.exec("rm foo"); 可以正确删除foo
: 但rt.exec("rm f*") ; 却没有作用
: 请问是什么原因?如何解决呢

h********g
发帖数: 116
3
does not working ~><~
而且 sh -c \" rm foo\" 都不行..

【在 c*****t 的大作中提到】
: f* is expanded by the unix shell. So you have to do something
: like
: rt.exec ("sh -c rm \"f*\"");

g*****g
发帖数: 34805
4
Use the runtime to call a script, and put all your fancy
command in the script, it's often easier that way.

【在 h********g 的大作中提到】
: does not working ~><~
: 而且 sh -c \" rm foo\" 都不行..

h********g
发帖数: 116
5
thanks

【在 g*****g 的大作中提到】
: Use the runtime to call a script, and put all your fancy
: command in the script, it's often easier that way.

1 (共1页)
进入Programming版参与讨论
相关主题
人无食不活,码无库不通
如何循环播放一个mp3文件中的某一段?
[合集] 请问关于堆栈的问题
difference btw. procsystime and dtrace ... count?
关于 exception 的一个问题
急问,有哪位面过微软SDET的大哥啊!能否帮一下小弟!
strcat()
help abt C++
菜鸟请教C问题
问一个奇怪的问题。
相关话题的讨论汇总
话题: rm话题: runtime话题: 通配符话题: foo话题: exec