> Hi,thanks, you are right, I have solved this > problem,but I want to know how to judge a grass > commond(called in my javaProgram) is successfully > exected? check this: > > if (ps.exitValue() != 0) { ?? exit values: 0 == success 1 == failure other = failure Hamish