I am trying to exec some linux commands from Java code. Actualy the code that I use is useing redirection (>&) and pipe simbols (|). How my Java code should be to be able to invoke that command as in csh or bash. Thanks in advance.
P.S. I have used:
Process p = Runtime.getRuntime().exec("shell command");
but this code is not OK with redirections and piping.