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 = "./run.sh";
Runtime rt = Runtime.getRuntime();
rt.exec(linuxCmd);
No comments:
Post a Comment