Any other alternative to at
Chris Green
cl at isbd.net
Sun Feb 18 16:34:10 UTC 2018
On Sun, Feb 18, 2018 at 05:13:55PM +0100, Ralf Mardorf wrote:
> On Mon, 2018-02-19 at 02:21 +1100, Karl Auer wrote:
> > sleep 3600 ; myprog
>
> JFTR since my domain is real-time audio, I don't need such delays, but
> actually for my old machine with HDDs, my scripts sometimes required to
> use delays. For example, to ensure that app A already is ready for
> usage, before app B gets started, I used something like "sleep 2". A
> pitfall when writing and testing such a script was the cache. Once an
> app already was launched one time, "sleep 0.5" died the job, but after a
> reboot, when the app wasn't in the cache, this 0.5 seconds delay was too
> short, a 2 seconds delay was needed.
>
There are far better methods available than simple timing for this
sort of thing. Even bash has ways of saying 'execute this only when
that has finished'.
--
Chris Green
More information about the ubuntu-users
mailing list