java运行Linux命令
<%@ page language="java" import="java.util.*,java.io.*" pageEncoding="UTF-8"%> <% //java运行Linux命令:Runtime.getRuntime().exec("/bin/bash 命令"); Runtime.getRuntime().exec("/bin/bash ./root/test.bash"); %>
<%@ page language="java" import="java.util.*,java.io.*" pageEncoding="UTF-8"%> <% //java运行Linux命令:Runtime.getRuntime().exec("/bin/bash 命令"); Runtime.getRuntime().exec("/bin/bash ./root/test.bash"); %>