On Wed, 05 Jan 2011 13:59:29 +0100, Rune Stensø <[email protected]> wrote:

For something that's a bit more generic, you can also just use $RANDOM
with sleep. $RANDOM returns between 0 and 32k as a value, and you can
use a divider to reduce it.
For example, I use 'sleep $(($RANDOM/10)) && do_heavy_stuff' to
randomize the start of a heavy job out across just under a hour.

Learning something new every day :)
Very useful indeed. Thanks,

--
Cosimo

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to