Re: random delay im cron
On Tue, 1 Mar 2016 20:12:35 +0100, David Haller <lists@dhaller.de>
wrote:
>Am Thu, 25 Feb 2016, Marc Haber schrieb:
>>Gibt es Debian einen Standard-Einzeiler, den ich in cron hinschreiben
>>kann wie "randomsleep && tool", oder muss ich den selbst schreiben und
>>ausrollen?
>
> sleep $(( $(od -An -i -N1 /dev/urandom ) % 10 )) && tool
>
>Über den Modulus stellst du den Wertebereich ein
Hab ich noch nie gesehen, ist auch ekelhaft.
Grüße
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Mannheim, Germany | Beginning of Wisdom " | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834
Reply to: