I have a script that checks to make sure that Tomcat is listening on the appropriate port.
#!/bin/bash ... main() { ... chktomcat tomcat1 chktomcat tomcat2 ... } ... chktomcat() { netstat -a | grep $1 > /dev/null 2>&1 RC=$? if (( RC == 0 )) then echo "Tomcat instance $1 is up." else echo "Tomcat instance $1 is down." fi } ... main exit 0 I needed to add tomcat1 & tomcat2 to the /etc/services file indicating the ports that they listen on. This script just shows that tomcat is listening on the network port. Thank you, Barry Goldstein [EMAIL PROTECTED] ******************************* The information contained in this message may be privileged and/or confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. Note that any views or opinions presented in this message are solely those of the author and do not necessarily represent those of Ameren. All emails are subject to monitoring and archival. Finally, the recipient should check this message and any attachments for the presence of viruses. Ameren accepts no liability for any damage caused by any virus transmitted by this email. If you have received this in error, please notify the sender immediately by replying to the message and deleting the material from any computer. Ameren Corporation ******************************* --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]