Hi everybody, I'm trying to use exec source with a pipe like that : iostat -c 10 | cpu2json.sh and it doesn't work. So I tried something like: sh -c "iostat -c 10 | cpu2json.sh" ... with the same result.
But as far as I know, the command is launched by Runtime.exec(args[]) where args[] is the result of command.split(\\s<file:///\\s>+) so "iostat -c 10 .." is splited too. This is why it doesn't work. Is it right ? It's easy to bypass the problem but is there a interest to modify exec behavior or write a new source "sh" ? Thanks, Guillaume Guillaume Polaert | Cyrès Conseil
