Given that the rm -Rf command can easily be rewritten in Java, why would you want to do this using Runtime.exec()? I could understand if you needed to do something which could not be done in Java, but here I just can't see the justification.
Sincerely, Anthony Eden > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Patrice Le Cozler > Sent: Friday, May 17, 2002 10:41 AM > To: Turbine Users List > Subject: Runtime.exec() doesn't work > > > hi, > > I need to run a linux command from my Index.java file but when I write : > > Runtime.getRuntime().exec("rm -rf path-to-dir"); > nothing happens and no Exception is thrown. > what's wrong ? > > thanks for answers > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
