The problem is, the command in
Runtime.getRuntime.exec("command_name");
- Put in an absolute path, and make sure you're using Runtime.getRuntime()
- You are missing the brackets in the above. You also need to create a process.
- Process p = Runtime.getRuntime().exec("execution string");
- Then get an input/output stream with p.getInputStream() and p.getInputStream().
- use p.waitFor() at the end to kill it.
for example i want to use "prog<input>output" as command . but it does not
work..
- I Don't understand what you're saying here, but the above code should sort you out.
Dave
