Just for clarification, doing "> tomcat.pid" wouldn't really work, because all you would get is the ps entry for that value. You'd have to use cut or awk and grab the actual PID from the PID column in the listing that resulted from "ps -ef | grep java | grep myapp" and redirect it to tomcat.pid.
John Turner [EMAIL PROTECTED] http://www.aas.com -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:45 AM To: Tomcat Users List Subject: RE: Other question Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp > tomcat.pid. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] >Sent: Friday, June 14, 2002 10:41 AM >To: Tomcat Users List >Subject: AW: Other question > >What operating system do you have ? > >> -----Urspr�ngliche Nachricht----- >> Von: Laura [mailto:[EMAIL PROTECTED]] >> Gesendet: Freitag, 14. Juni 2002 13:59 >> An: Tomcat Users List >> Betreff: Re: Other question >> >> >> But it doesn't seem to be correct. It writes in tomcat.pid a >> PID that doesn't seem to be correct: I have tried to do: >> >> kill -9 PID (which is in the tomcat.pid) >> >> and the system tells me: >> > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
