#!/bin/sh trap stop-tomcat-debug EXIT start-tomcat-debug >/dev/null echo TOMCAT is on its way, wait a few seconds before using it. echo Press enter to kill TOMCAT. echo read echo Shutting down...