Re: Other question

2002-06-14 Thread Ben Ricker
| grep myapp | awk '{print $2}' > > > > Yoav Shapira > > Millennium ChemInformatics > > > > >-Original Message- > > > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > > > >Sent: Friday, June 14, 2002 11:41 AM > > >

Re: Other question

2002-06-14 Thread Laura
rint $2}' > > Yoav Shapira > Millennium ChemInformatics > > >-Original Message- > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > >Sent: Friday, June 14, 2002 11:41 AM > >To: 'Tomcat Users List' > >Subject: RE: Other question >

RE: Other question

2002-06-14 Thread Shapira, Yoav
4, 2002 11:41 AM >To: 'Tomcat Users List' >Subject: RE: Other question > > >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 act

RE: Other question

2002-06-14 Thread Turner, John
p 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

RE: Other question

2002-06-14 Thread Turner, John
That's a good tip! Thanks! 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

RE: Other question

2002-06-14 Thread Shapira, Yoav
[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:

Re: Other question

2002-06-14 Thread Joel Sather
I tried to run Tim's original sh script under Solaris and it wouldn't give me anything, so I wrote a version in Perl. My script looks like this: --- #!/usr/local/bin/perl open (PIDFILE, "> logs/tomcat.pid"); print PID

Re: Other question

2002-06-14 Thread Tim Funk
Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct lo

Re: Other question

2002-06-14 Thread Laura
Hi, I have installed your code in my Tomcat (4.0.2 + apache). 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: bash: kill: (3977) - No such pid Where is

Re: Other question

2002-06-13 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html I have mine in the , but it can also go other spots in conf/server.xml according to the docs. -Tim Laura wrote: > Hi, > > your code seems very interesting, but I haven't understood one thing: you says > > >>Then add the follow

Re: Other question

2002-06-13 Thread Laura
Hi, your code seems very interesting, but I haven't understood one thing: you says >Then add the following into server.xml > --Begin server.xml snippet > > --End server.xml snippet do you want to say conf/server.xml? Can you put in the server.xml? Where do I have to put it in the server.xml

Re: Other question

2002-06-13 Thread Tim Funk
For what its worth - I created (and use) a LifecycleListener that runs on startup which logs the process ID into a file called tomcat.pid. Which is created by a shell script called writepid.sh. Below is all the code to get this to work. This code also assumes your current working directory is

Re: Other question

2002-06-13 Thread Rick Fincher
Under Solaris you have to use /usr/ucb/ps -ax |grep 'java*' to use the Berkeley version of ps. This gives a nice listing of the command line flags too. Rick - Original Message - > hi Laura, > > when tomcat runs an instance of java is always running..try > > ps -ax | grep 'java*' > > it

Re: Other question

2002-06-13 Thread Rick Fincher
Hi Laura, Tomcat actually does have a pid. It is a java application. Under Solaris if you do a ps -elf |grep nativ you will see a listing beginning with your JAVA_HOME and ending with ../bin/sparc/nativ_t. That's the pid of the java virtual machine. If you have multiple java apps running each

Re: Other question

2002-06-13 Thread zibie
> > I have one other question: If Tomcat shouts down for some cause, how can I know it? I think the best method is (on linux systems) # netstat -a -n | grep LISTEN if tomcat work ok, you'll get: tcp0 0 0.0.0.0:80010.0.0.0:* LISTEN tcp0 0 127.0.0.1:8005

Re: Other question

2002-06-13 Thread Ravishankar S
t; <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, June 13, 2002 3:11 PM Subject: Re: Other question > Hey Ravi, > > > Try doing ps auxwwwf > > it'll give you alot more detail > > the ps -ax won't l

Re: Other question

2002-06-13 Thread David Cassidy
Hey Ravi, Try doing ps auxwwwf it'll give you alot more detail the ps -ax won't let you actually see what java is running David Ravishankar S wrote: >hi Laura, > >when tomcat runs an instance of java is always running..try > >ps -ax | grep 'java*' > >it should give a bunch of java ins

Re: Other question

2002-06-13 Thread Ravishankar S
hi Laura, when tomcat runs an instance of java is always running..try ps -ax | grep 'java*' it should give a bunch of java instances depending on the no of threadshere's what my redhat 6.2 said 21619 pts/3S 0:14 /usr/java/jdk1.3.1/bin/i386/native_threads/java -clas 21664 pts/3

Re: Other question

2002-06-13 Thread David Cassidy
Laura, there are at least 2 ways... have a look in the ps list - there should be mention of a process running with a name that includes Tomcat (?!!!) The other way - far better as it actually tests that the system is working ... use wget or curl - use your fave and make an access to your si