Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #227332

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)
Date 2020-09-25 13:50 +0200
Message-ID <ASUoF-7Tw-7@gated-at.bofh.it> (permalink)
References (2 earlier) <ASzWW-3NY-3@gated-at.bofh.it> <ASAzE-4fD-11@gated-at.bofh.it> <ASAzE-4fD-9@gated-at.bofh.it> <ASAJk-4iX-9@gated-at.bofh.it> <ASQEp-5FR-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

notify via virtual terminal available packages Pòl Hallen <deben@fuckaround.org> - 2020-09-23 22:50 +0200
  Re: notify via virtual terminal available packages john doe <johndoe65534@mail.com> - 2020-09-24 10:40 +0200
  Re: notify via virtual terminal available packages Charles Curley <charlescurley@charlescurley.com> - 2020-09-24 15:50 +0200
    Re: notify via virtual terminal available packages Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-24 16:00 +0200
      Re: notify via virtual terminal available packages Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-24 16:40 +0200
        Re: notify via virtual terminal available packages Charles Curley <charlescurley@charlescurley.com> - 2020-09-24 16:50 +0200
          Re: notify via virtual terminal available packages Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-24 17:00 +0200
          Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) Andy Smith <andy@strugglers.net> - 2020-09-25 09:50 +0200
            Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-25 13:50 +0200
              Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) Andy Smith <andy@strugglers.net> - 2020-09-25 14:30 +0200
                Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) David Wright <deblis@lionunicorn.co.uk> - 2020-09-26 04:50 +0200
      Re: notify via virtual terminal available packages Charles Curley <charlescurley@charlescurley.com> - 2020-09-24 16:40 +0200

csiph-web