Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 78509 invoked from network); 14 Jun 2002 17:20:14 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Jun 2002 17:20:14 -0000 Received: (qmail 26367 invoked by uid 97); 14 Jun 2002 17:19:10 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 26201 invoked by uid 97); 14 Jun 2002 17:19:09 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 26141 invoked by uid 98); 14 Jun 2002 17:19:07 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: pop3.wellinx.com Subject: Re: Other question From: Ben Ricker To: Tomcat Users List In-Reply-To: <200206141604.LAA08897@pop3.wellinx.com> References: <200206141604.LAA08897@pop3.wellinx.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.6.99 Date: 14 Jun 2002 11:55:02 -0500 Message-Id: <1024073702.3347.18.camel@dhcp35.wellinx.com> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Solaris, you can use 'pgrep' which will return the PID based upon a grep. Do a man on it; it has saved my bacon when writing process monitors. Ben Ricker Web Security System Administrator Wellinx.com On Fri, 2002-06-14 at 11:05, Laura wrote: > On linux, >=20 > ps -ef | grep java | grep myapp | awk '{print $1}' >=20 > I'm trying it. >=20 > Laura >=20 >=20 > Alle 17:59, venerd=EC 14 giugno 2002, hai scritto: > > Hi, > > Yepp, you're right ;) Forgot that part. For us on Solaris 2.8 it's > > ps -ef | grep java | grep myapp | awk '{print $2}' > > > > Yoav Shapira > > Millennium ChemInformatics > > > > >-----Original Message----- > > > > From: Turner, John [mailto:JTurner@AAS.com] > > > > >Sent: Friday, June 14, 2002 11:41 AM > > >To: 'Tomcat Users List' > > >Subject: RE: Other question > > > > > > > > >Just for clarification, doing "> tomcat.pid" wouldn't really work, bec= ause > > >all you would get is the ps entry for that value. You'd have to use c= ut > > > or awk and grab the actual PID from the PID column in the listing tha= t > > > resulted > > >from "ps -ef | grep java | grep myapp" and redirect it to tomcat.pid. > > > > > >John Turner > > >jturner@aas.com > > >http://www.aas.com > > > > > >-----Original Message----- > > > > From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] > > > > >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 proc= ess > > >an > > >identifier via the first argument, i.e. the first thing in CATALINA_OP= TS, > > >for example -Da=3Dmyapp. > > > > > >You would then do ps -ef | grep java | grep myapp > tomcat.pid. > > > > > >Yoav Shapira > > >Millennium ChemInformatics > > > > > >>-----Original Message----- > > >>From: Ralph Einfeldt [mailto:ralph.einfeldt@uptime-isc.de] > > >>Sent: Friday, June 14, 2002 10:41 AM > > >>To: Tomcat Users List > > >>Subject: AW: Other question > > >> > > >>What operating system do you have ? > > >> > > >>> -----Urspr=FCngliche Nachricht----- > > >>> Von: Laura [mailto:lauradiara@libero.it] > > >>> 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: > >>unsubscribe@jakarta.apache.org> > > >>For additional commands, e-mail: > >>help@jakarta.apache.org> > > > > > >-- > > >To unsubscribe, e-mail: > > > > > >For additional commands, e-mail: > > > >=20 > -- > To unsubscribe, e-mail: > For additional commands, e-mail: >=20 -- To unsubscribe, e-mail: For additional commands, e-mail: