On 18/09/09 16:58, pete wrote:
> 
> I don't think I quite get what you mean.  I understand that if Tomcat
> is running and you bounce it, it will get a new PID.  But I am
> grepping for the currently running PID associated with Tomcat right?
> 
> For example:
> .......
>  pid = capture("ps -aef | grep tomcat | head -2 | tail -1 | awk
> '{print $2}'")
>  run "kill -9 #{pid}"
> .......

Another tip...

Use "grep [t]omcat" to avoid matching the process running the grep.

R.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to