Wednesday, June 06, 2018

Re: pgrep/pkill in rc script

On 6/4/2018 4:57 PM, Stuart Henderson wrote:
> pgrep uses regular expressions, so if you're matching the full string
> you'll need to escape the +'s.
>
> The 16-character limit doesn't apply here, that's if you're only matching
> on the command name. rc.d / pgrep -f match on the full process title instead.
> Run top(1) and compare before/after pressing C.

Ah, that makes sense. Thanks!

No comments:

Post a Comment