It looks like "ps ax | grep ..." lists several processes for the same JVM, due to threads behavior is Linux, (see 1. http://tomcat.apache.org/faq/unix.html#ps 2. http://java.sun.com/developer/technicalArticles/Programming/linux/index.html (scroll down to "About Linux Threads") 3. http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=/com.ibm.java.doc.diagnostics.50/diag/problem_determination/linux_ps.html )
and the next line, if [ "$procid" != "0" ]; produces syntax error when $procid expands into several lines. Probably the solution is to replace the "ps ax | grep ..." command so that it 1) requests a hierarchical listing of processes, 2) filters it, but chooses the top line only, 3) parse pid out of it. What version of java are you using? --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]