#! /bin/bash export JAVA_HOME= <insert java home directory (no trailing path separator)> export CATALINA_HOME= <insert Tomcat 4.1.x home directory (no trailing path separator)> cd $CATALINA_HOME ./bin/shutdown.sh