bash script to take control of a local tomcat instance