On Fri, Aug 22, 2008 at 3:47 PM, Loureiro, Gil <[EMAIL PROTECTED]> wrote:
>
> Be careful with the "Process proc = rt.exec(cmd);" usage, because depending 
> on the OS in some estrange conditions it hangs, even to command that in 
> theory shouldn't use stdin/err. A work around is to add threads to consume 
> the stdin and stderr of the process, like:

Yes, this is the approach that commons-exec use. If we would go with a
solution like this, I would strongly recommend using commons-exec. Not
that I would like to use a solution that requires running shell
commands from a component like FtpServer, I'm afraid of running into
all kinds of concurrency and security problems.

/niklas

Reply via email to