On 17/09/09 18:57, pete wrote:
>
> Hi-
>
> I want to use Cap to kill a process, but I don't know the PID so I am
> using what I have below to get it:
>
> ps- -aef | grep <searchstring> | head -2 | tail -1 | awk '{print $2}'
>
> Is it possible to use the results of the above command in a custom
> task and kill off the PID that is returned?
Try:
man pkill
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
-~----------~----~----~----~------~----~------~--~---