1

Execute *nix find command using java code

view story
linux-howto

http://stackoverflow.com – I am trying to execute a find command using java code. I did the following: sysCommand = "find . -name '*out*' > file1" Runtime runtimeObj = Runtime.getRuntime(); try { Process processObj = runtimeObj.exec(sysCommand); processObj.waitFor(); ... This Linux command is executed when I use command line but fails in Java, why? (HowTos)