On Mon, 15 May 2023 11:23:22 +0200 Per Jessen <per@opensuse.org> wrote:
Andrei Borzenkov wrote:
On Mon, May 15, 2023 at 11:12 AM Per Jessen <per@opensuse.org> wrote:
On my leap155 box, I don't have any 'pidof'. It seems to be part of sysvinit-tools. Looking at the contents of that, at least pidof and usleep seem to be quite useful - I wonder if they ought to be moved to some other package.
pidof is provided by procps on Tumbleweed, Leap is explicitly built to exclude pidof from procps.
Interesting, I wonder why.
google suggests pgrep works more reliably (pidof omits processes blocked on disk I/O)
GNU sleep supports fractional intervals so "usleep 1" == "sleep 0.000001".
Heh, it does indeed! Pity it doesn't accept the suffixes ms and us too. I guess the fractions work mostly by coincidence? There is no mention in the man page.
I have to say, it would never have occurred to me to even try that. Anyway, thanks, I think it'll be one of those I actually remember!