Saturday, February 2, 2008

JSP Execute shell script

Although there is security concern to do something like this, I might say that is convenient to do something like this instead of writing lots of complicated JSP pages to do simple system tasks.

Here ya go:

String linuxCmd = "./";
Runtime rt = Runtime.getRuntime();

No comments: