How can I invoke a shell script through a jsp page?

A solution given earlier in the forum does not work:
      import java.io.*;

      String cmmd="ls -l ";
      Runtime rt = Runtime.getRuntime();
      Process p = rt.exec( cmmd );
         if( p.waitFor() != 0 ) {
            System.out.println("E", "Error executing
command Line: " +
cmmd);
            System.exit( -1 );
         }


Any other permissions that may need to be set??

Thanks for any pointers.

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to