We have also the question of pure java...!

Cumprimentos,
Loureiro, Gil
Document Engineering Manager
Document Services
_________________________________________
Edinfor - a LogicaCMG company
Rua Particular da EDP (à rua cidade Goa nº11), 2685 Sacavém
Portugal
M: +351 93 741 8888
E: [EMAIL PROTECTED]
www.edinfor.logicacmg.com

-----Original Message-----
From: Niklas Gustavsson [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 22 de Agosto de 2008 14:53
To: ftpserver-users@mina.apache.org
Subject: Re: File/Dir permissions

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


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


Reply via email to