getRuntime().exec problem under Linux
Here's a piece of code under Mandrake.
Process p;
try
{
p=Runtime.getRuntime().exec("/usr/local/WordNet-3.0/bin/./wn " + englishword +" -hypen > /home/istvan/wordnet/Kimenetek/ki.txt");//"englishword" is a String
//p=Runtime.getRuntime().exec("ls");
try{p.waitFor();}
catch (InterruptedException ex1){System.out.println(ex1.getMessage());}
System.out.println(p.getInputStream().toString());// > "java.io.BufferedInputStream@1bcc0bc"
System.out.println(p.getErrorStream().toString());// > "java.io.FileInputStream@111a3a4"
}
catch (IOException ex){System.out.println(ex.getMessage());}
It does absolutely nothing, doesn't create the desired "ki.txt" file, although from the command line works just fine. In fact, even at the simple "ls" command gives the message mentioned in the code as a comment.
Can somebody help me? Thanks in advance.

