I have a script that needs to run after tomcat has finished starting up and is ready to start deploying applications. I\'m using $TOMCAT_HOME/bin/startup.sh whi
$TOMCAT_HOME/bin/startup.sh
I needed this to test from jenkins if the tomcat from the remote server started for a system check.
until [[ `ssh -o StrictHostKeyChecking=no root@${DEPLOY_HOST} 'netstat -tulpn | grep 8005'` != "" ]] ; do echo "waiting for tomcat"; sleep 6; done