I'm using grep to monitor apache process (tomcat apache 5.5.17). It seems to create a new PID every time for each time I query the apache process.
*OS: Solaris 5.10* NAME=jcami SSH_CONNECTION=10.159.20.18 4805 10.158.48.20 22 _=/usr/ucb/ps jcami *28775* 0.1 0.1 1280 904 pts/12 S 15:39:46 0:00 tail -f /projects/autotopup/logs/autopay.log SHELL=/bin/bash TERM=vt100 SSH_CLIENT= 10.159.20.18 1167 22 OLDPWD=/projects/tomcat/apache-tomcat-5.5.17-externalwebservices SSH_TTY=/dev/pts/12 USER=jcami SSH_AUTH_SOCK=/tmp/ssh-utE26750/agent.26750 PATH=/usr/bin:/usr/local/bin MAIL=/var/mail//jcami PWD=/export/home/jcami LANG=C TZ=Europe/Malta HOME=/export/home/jcami/ SHLVL=2 LOGNAME=jcami SSH_CONNECTION=10.159.20.18 1167 10.158.48.20 22 _=/usr/bin/tail bash-3.00$ ps -eauxgww | grep "5.5.17" | grep -v "grep" jcami *28830* 0.1 0.2 3432 3048 pts/7 O 15:45:56 0:00 /usr/ucb/ps -eauxgww SHELL=/bin/bash TERM=vt100 SSH_CLIENT=10.159.20.18 4805 22 OLDPWD=/ SSH_TTY=/dev/pts/7 USER=jcami SSH_AUTH_SOCK=/tmp/ssh-Mrh28782/agent.28782 PATH=/usr/bin:/usr/local/bin MAIL=/var/mail//jcami PWD=/projects/tomcat/apache-tomcat-5.5.17-externalwebservices LANG=C TZ=Europe/Malta HOME=/export/home/jcami/ SHLVL=2 LOGNAME=jcami SSH_CONNECTION=10.159.20.18 4805 10.158.48.20 22 _=/usr/ucb/ps jcami *28775 * 0.1 0.1 1280 904 pts/12 S 15:39:46 0:00 tail -f /projects/autotopup/logs/autopay.log SHELL=/bin/bash TERM=vt100 SSH_CLIENT= 10.159.20.18 1167 22 OLDPWD=/projects/tomcat/apache-tomcat-5.5.17-externalwebservices SSH_TTY=/dev/pts/12 USER=jcami SSH_AUTH_SOCK=/tmp/ssh-utE26750/agent.26750 PATH=/usr/bin:/usr/local/bin MAIL=/var/mail//jcami PWD=/export/home/jcami LANG=C TZ=Europe/Malta HOME=/export/home/jcami/ SHLVL=2 LOGNAME=jcami SSH_CONNECTION=10.159.20.18 1167 10.158.48.20 22 _=/usr/bin/tail bash-3.00$ ps -eauxgww | grep "5.5.17" | grep -v "grep" jcami *28833* 0.1 0.2 3432 3048 pts/7 O 15:45:57 0:00 /usr/ucb/ps -eauxgww SHELL=/bin/bash TERM=vt100 SSH_CLIENT=10.159.20.18 4805 22 OLDPWD=/ SSH_TTY=/dev/pts/7 USER=jcami SSH_AUTH_SOCK=/tmp/ssh-Mrh28782/agent.28782 PATH=/usr/bin:/usr/local/bin MAIL=/var/mail//jcami PWD=/projects/tomcat/apache-tomcat-5.5.17-externalwebservices LANG=C TZ=Europe/Malta HOME=/export/home/jcami/ SHLVL=2 LOGNAME=jcami SSH_CONNECTION=10.159.20.18 4805 10.158.48.20 22 _=/usr/ucb/ps jcami *28775* 0.1 0.1 1280 904 pts/12 S 15:39:46 0:00 tail -f /projects/autotopup/logs/autopay.log SHELL=/bin/bash TERM=vt100 SSH_CLIENT= 10.159.20.18 1167 22 OLDPWD=/projects/tomcat/apache-tomcat-5.5.17-externalwebservices SSH_TTY=/dev/pts/12 USER=jcami SSH_AUTH_SOCK=/tmp/ssh-utE26750/agent.26750 PATH=/usr/bin:/usr/local/bin MAIL=/var/mail//jcami PWD=/export/home/jcami LANG=C TZ=Europe/Malta HOME=/export/home/jcami/ SHLVL=2 LOGNAME=jcami SSH_CONNECTION=10.159.20.18 1167 10.158.48.20 22 _=/usr/bin/tail Any idea why, please? Rgds, -- Jon Camilleri Mobile (MT): 00356 7982 7113 E-mail: [EMAIL PROTECTED] Please consider your environmental responsibility before printing this e-mail. I usually reply to e-mails within 2 business days. If it's urgent, give me a call.