On 2022/12/09 15:25, Martin Ziemer wrote: > Am Fri, Dec 09, 2022 at 02:00:29PM +0000 schrieb Stuart Henderson: > > I made a test setup, the only thing missing from my earlier diff was -f. > > > > OK? > Yes. Tested on two Systems. > > Sorry for the hassle with my unnecessary complicated searching for > a solution. (I tried your perfect hint with "-f" on the old string of > "^getmails$", so it failed for me)
No worries :) Committed, thanks. Sorry I missed the sed in your patch; still that could have a small issue with the pid printing if $$ is a partial match on another pid. (Without -f, the process name that pgrep would have to match is just "sh", which would not be ideal ;)