----- Original Message -----
From: Pol Millan
Sent: Monday, October 04, 1999 12:16 PM
Subject: OS & Servlets

Does anyone know how I can execute an OS command like "dir" from a servlet?
 
And if it's possible, does it compromise the portability? I guess so.
 
Thanks,
 
Pol Millan
 
You can do it but it is not neccessary to exec commands like that.
 
It will make your servlet non portable across different OS's.
 
It runs the risk of introducing security problems to your system not to mention
the potential for disaster.
 
consider exec("rm -rf /") on a unix system.
 
Andy Bailey

Reply via email to