-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael,

On 10/28/2011 8:43 AM, Cooper man wrote:
> And this is a bit of a hack but something like this will give you
> the correct pid. Set application.name or soehting similar as a jave
> env variable and then
> 
> if [ ! -z "$CATALINA_PID" ]; then ps aux | grep tomcat  | grep
> application.name=YOUR_APP_NAME | head -n 1 | awk '{ print $2 }' >
> $CATALINA_PID


Some *NIX's have a program called "pidof" which might be helpful. If
you run many processes with the same, it might not be so helpful.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6rCxQACgkQ9CaO5/Lv0PBDXQCeNbb9Yo2HJKgxNPCoCrrzbTwj
4MIAmQES9A7tQxJxonrfAdLxz292xkXz
=GuGg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to