This project contains an example netbeans tomcat web project that lets you run shell scripts in response to Http requests.