Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)
On Fri, Sep 25, 2020 at 07:44:25AM +0000, Andy Smith wrote:
> "hostid" tends to return a hexadecimal representation of the first
> IPv4 address (but isn't guaranteed to).
unicorn:~$ hostid
007f0101
Doesn't look very useful. That's just 127.0.1.1 in a 16-bit little
endian format.
> On a systemd system one
> could instead use /etc/machine-id. On Linux there is also
> /proc/sys/kernel/random/boot_id (but needs dashes removed).
>
> Systemd timers can do this sort of thing themselves, so no need
> there for this sort of scripting.
You know what else works really well? Just putting a different start
time in each system's crontab.
Reply to: